Changeset 10637 in orxonox.OLD for branches/inputdevice/src
- Timestamp:
- Apr 19, 2007, 3:41:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/inputdevice/src/world_entities/script_triggers/action_trigger.cc
r10634 r10637 122 122 { 123 123 if (event.type == KeyMapper::PEV_ACTION && event.bPressed) 124 actionScheduled = true; 124 { 125 actionScheduled = true; 126 } 125 127 } 126 128 127 129 void ActionTrigger::tick( float timestep ) 128 130 { 129 if( scriptFinished || !actionScheduled) return;131 if( scriptFinished ) return; 130 132 131 if( this->target != NULL )133 if( this->target != NULL && actionScheduled) 132 134 { 133 135 if( !invert && this->distance(target) < radius && actionScheduled)
Note: See TracChangeset
for help on using the changeset viewer.