Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 3:06:00 PM (18 years ago)
Author:
bensch
Message:

merged back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/story_entities/game_world_data.cc

    r9019 r9140  
    3131#include "player.h"
    3232#include "camera.h"
    33 #include "terrain.h"
     33#include "terrain_entity.h"
    3434#include "skybox.h"
    3535#include "md2/md2Model.h"
     
    209209      BaseObject* created = Factory::fabricate(element);
    210210      if( created != NULL )
    211         PRINTF(4)("Created a %s: %s\n", created->getClassName(), created->getName());
     211        PRINTF(2)("Created a %s: %s\n", created->getClassName(), created->getName());
    212212
    213213      //todo do this more elegant
     
    217217        State::setSkyBox(dynamic_cast<SkyBox*>(this->sky));
    218218      }
    219       if( element->Value() == "Terrain" && created->isA(CL_TERRAIN))
     219               
     220      if( element->Value() == "TerrainEntity" && created->isA(CL_TERRAIN))
    220221      {
    221         this->terrain = dynamic_cast<Terrain*>(created);
     222        this->terrain = dynamic_cast<TerrainEntity*>(created);
    222223        CDEngine::getInstance()->setTerrain(terrain);
    223224      }
Note: See TracChangeset for help on using the changeset viewer.