Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4412 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


Ignore:
Timestamp:
May 31, 2005, 1:05:26 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now shooting and weapon change work again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r4409 r4412  
    234234    accel = accel+(direction*acceleration);
    235235  if( this->bDown && this->getRelCoor().x > -5)
    236     accel = accel-(direction*acceleration);
     236    accel = accel -(direction*acceleration);
    237237  if( this->bLeft &&  TrackManager::getInstance()->getWidth() > -this->getRelCoor().z*2)
    238238    accel = accel + (orthDirection*acceleration);
     
    300300      this->bRight = event.bPressed;
    301301    }
    302 
    303 }
     302  else if( event.type == KeyMapper::PEV_FIRE1)
     303    {
     304       this->bFire = event.bPressed;
     305    }
     306  else if( event.type == KeyMapper::PEV_NEXT_WEAPON)
     307    {
     308      if( !event.bPressed) this->bWeaponChange = !this->bWeaponChange;
     309    }
     310
     311}
Note: See TracChangeset for help on using the changeset viewer.