Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6459 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Jan 10, 2006, 2:00:20 AM (18 years ago)
Author:
patrick
Message:

network: skybox parenting fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_game_manager.cc

    r6424 r6459  
    2525
    2626#include "p_node.h"
     27#include "state.h"
     28#include "game_world.h"
     29#include "world_entity.h"
    2730
    2831
     
    474477      s->setIsOutOfSync( true );
    475478    PRINTF(0)("Fabricated %s with id %d\n", s->getClassName(), s->getUniqueID());
     479
     480
     481    if( !strcmp( s->getClassName(), "SkyBox"))
     482    {
     483      PRINTF(0)("==> Created the Sky!\n");
     484      (dynamic_cast<GameWorld*>(State::getCurrentStoryEntity()))->setSky( dynamic_cast<WorldEntity*>(s) );
     485    }
     486//       this->sky = dynamic_cast<WorldEntity*>(created);
     487    if( !strcmp( s->getClassName(), "Terrain"))
     488    {
     489      PRINTF(0)("==> Created the Terrain\n");
     490//       this->terrain = dynamic_cast<Terrain*>(created);
     491//       CDEngine::getInstance()->setTerrain(terrain);
     492    }
     493
    476494    return b;
    477495  }
Note: See TracChangeset for help on using the changeset viewer.