Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2009, 10:20:37 PM (14 years ago)
Author:
rgrieder
Message:

Fixed at least 8 unitialised value problems though not all of them are problematic. Still, the values are being used and some condition depends on it.

Location:
code/branches/presentation2/src/orxonox/overlays
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/overlays/Map.cc

    r5929 r6218  
    9494
    9595        //Getting Scene Manager (Hack)
    96         if( !sManager_ )
    97         {
    98             ObjectList<Scene>::iterator it = ObjectList<Scene>::begin();
    99             this->sManager_ = it->getSceneManager();
    100         }
     96        ObjectList<Scene>::iterator it = ObjectList<Scene>::begin();
     97        this->sManager_ = it->getSceneManager();
    10198        if( !Map::getMapSceneManager() )
    10299        {
  • code/branches/presentation2/src/orxonox/overlays/OrxonoxOverlay.cc

    r6057 r6218  
    8383        // Get aspect ratio from the render window. Later on, we get informed automatically
    8484        this->windowAspectRatio_ = static_cast<float>(this->getWindowWidth()) / this->getWindowHeight();
    85         this->sizeCorrectionChanged();
    86 
    87         this->changedVisibility();
    88 
    89         setSize(Vector2(1.0f, 1.0f));
    90         setPickPoint(Vector2(0.0f, 0.0f));
    91         setPosition(Vector2(0.0f, 0.0f));
    92         setRotation(Degree(0.0));
    93         setAspectCorrection(false);
     85
     86        this->size_ = Vector2(1.0f, 1.0f);
     87        this->pickPoint_= Vector2(0.0f, 0.0f);
     88        this->position_ = Vector2(0.0f, 0.0f);
     89        this->angle_ = Degree(0.0);
     90        this->bCorrectAspect_ = false;
     91        this->rotState_ = Horizontal;
     92        this->angleChanged(); // updates all other values as well
     93
    9494        setBackgroundMaterial("");
    9595    }
Note: See TracChangeset for help on using the changeset viewer.