Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

trunk: game rules loading problems

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.