Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6771 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Jan 26, 2006, 2:39:31 PM (19 years ago)
Author:
bensch
Message:

Water is better now (but still quite Bad)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world_data.cc

    r6634 r6771  
    3333#include "test_entity.h"
    3434#include "terrain.h"
     35#include "skybox.h"
    3536#include "md2Model.h"
    3637#include "world_entities/projectiles/projectile.h"
     
    5960#include "ogg_player.h"
    6061#include "shader.h"
    61 
    6262
    6363
     
    207207      //todo do this more elegant
    208208      if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox"))
     209      {
    209210        this->sky = dynamic_cast<WorldEntity*>(created);
     211        State::setSkyBox(dynamic_cast<SkyBox*>(this->sky));
     212      }
    210213      if( element->Value() != NULL && !strcmp( element->Value(), "Terrain"))
    211214      {
     
    263266    delete this->objectManager;
    264267  }
     268  if(State::getSkyBox())
     269    State::setSkyBox(NULL);
    265270}
    266271
Note: See TracChangeset for help on using the changeset viewer.