Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 5, 2006, 11:26:21 PM (19 years ago)
Author:
patrick
Message:

trunk: game rules loading problems

Location:
trunk/src/story_entities
Files:
2 edited

Legend:

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

    r7029 r7035  
    6464#include "shader.h"
    6565
     66#include "game_rules.h"
    6667
    6768using namespace std;
     
    350351
    351352    GraphicsEngine::getInstance()->tick(this->dtS);
     353
     354    if( likely(this->dataTank->gameRule != NULL))
     355      this->dataTank->gameRule->tick(this->dtS);
    352356  }
    353357  this->lastFrame = currentFrame;
     
    437441
    438442  engine->draw();
     443
     444  // draw the game ruls
     445  if( likely(this->dataTank->gameRule != NULL))
     446    this->dataTank->gameRule->draw();
    439447}
    440448
  • trunk/src/story_entities/game_world_data.cc

    r7034 r7035  
    8383  this->music = NULL;
    8484  this->objectManager = NULL;
     85  this->gameRule = NULL;
    8586}
    8687
Note: See TracChangeset for help on using the changeset viewer.