Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Nov 24, 2005, 1:14:06 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: really cool hack, to let the fighter fly up and down :)

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

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

    r5671 r5751  
    9191    return;
    9292
    93   const TiXmlElement* element = root->FirstChildElement();
    94   // load Worlds/Subcampaigns/Whatever
    95   StoryEntity* lastCreated = NULL;
    96   while( element != NULL)
     93  LOAD_PARAM_START_CYCLE(root, element);
    9794  {
    9895    PRINTF(5)("Campaign: Constructor: adding a world\n");
    9996    StoryEntity* created = (StoryEntity*) GameLoader::getInstance()->fabricate(element);
    100       /*
    101     if( lastCreated != NULL)
    102     created->setNextStoryID( lastCreated->getStoryID());
    103     else
    104     created->setNextStoryID( WORLD_ID_GAMEEND);
    105       */
    10697    if( created != NULL)
    10798    {
    10899      this->addEntity( created);
    109       lastCreated = created;
    110     }
    111     element = element->NextSiblingElement();
     100    }
    112101  }
     102  LOAD_PARAM_END_CYCLE(element);
    113103}
    114104
  • trunk/src/story_entities/world.cc

    r5750 r5751  
    371371  EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_NEXT_WEAPON);
    372372  EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_PREVIOUS_WEAPON);
     373  EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, SDLK_PAGEUP);
     374  EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, SDLK_PAGEDOWN);
    373375
    374376  // bind camera
Note: See TracChangeset for help on using the changeset viewer.