Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4919 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Jul 21, 2005, 12:49:18 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: CDEngine knows player and gets the array offsets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4918 r4919  
    377377          // if we load a 'Player' we use it as localPlayer
    378378          //todo do this more elegant
    379           if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created;
     379          if( element->Value() != NULL && !strcmp( element->Value(), "Player"))
     380          {
     381            localPlayer = (Player*) created;
     382            CDEngine::getInstance()->setPlayer(localPlayer);
     383          }
    380384          if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) sky = (SkyBox*) created;
    381385          if( element->Value() != NULL && !strcmp( element->Value(), "Terrain"))
Note: See TracChangeset for help on using the changeset viewer.