Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10637 in orxonox.OLD for branches/inputdevice/src


Ignore:
Timestamp:
Apr 19, 2007, 3:41:03 PM (18 years ago)
Author:
snellen
Message:

button works now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/inputdevice/src/world_entities/script_triggers/action_trigger.cc

    r10634 r10637  
    122122{
    123123 if (event.type == KeyMapper::PEV_ACTION && event.bPressed)
    124   actionScheduled = true;
     124 {
     125   actionScheduled = true;
     126 }
    125127}
    126128
    127129void ActionTrigger::tick( float timestep )
    128130{
    129   if( scriptFinished || !actionScheduled ) return;
     131  if( scriptFinished ) return;
    130132
    131   if( this->target != NULL)
     133  if( this->target != NULL && actionScheduled)
    132134  {
    133135    if( !invert && this->distance(target) < radius && actionScheduled)
Note: See TracChangeset for help on using the changeset viewer.