Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 29, 2007, 6:08:23 PM (18 years ago)
Author:
snellen
Message:

added tick trigger which always calles the script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/scriptimprovements/src/world_entities/script_triggers/space_trigger.cc

    r10608 r10609  
    116116void SpaceTrigger::tick(float timestep)
    117117{
    118   if( this->getScriptFinished() ) return;
     118  if( scriptFinished ) return;
    119119
    120   if(triggerRemains && this->getScriptCalled() )
     120  if(triggerRemains && scriptCalled )
    121121  {
    122122    executeAction(timestep);
     
    130130    //printf("Distance is %f \n", this->distance(target));
    131131      executeAction(timestep);
    132       this->setScriptCalled(true);
     132      scriptCalled = true;
    133133      return;
    134134
     
    137137    {
    138138      executeAction(timestep);
    139       this->setScriptCalled(true);
     139      scriptCalled = true;
    140140      return;
    141141    }
Note: See TracChangeset for help on using the changeset viewer.