Changeset 10609 in orxonox.OLD for branches/scriptimprovements/src/world_entities/script_triggers/space_trigger.cc
- Timestamp:
- Mar 29, 2007, 6:08:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scriptimprovements/src/world_entities/script_triggers/space_trigger.cc
r10608 r10609 116 116 void SpaceTrigger::tick(float timestep) 117 117 { 118 if( this->getScriptFinished()) return;118 if( scriptFinished ) return; 119 119 120 if(triggerRemains && this->getScriptCalled())120 if(triggerRemains && scriptCalled ) 121 121 { 122 122 executeAction(timestep); … … 130 130 //printf("Distance is %f \n", this->distance(target)); 131 131 executeAction(timestep); 132 this->setScriptCalled(true);132 scriptCalled = true; 133 133 return; 134 134 … … 137 137 { 138 138 executeAction(timestep); 139 this->setScriptCalled(true);139 scriptCalled = true; 140 140 return; 141 141 }
Note: See TracChangeset
for help on using the changeset viewer.