Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3764 in orxonox.OLD


Ignore:
Timestamp:
Apr 9, 2005, 11:05:44 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: player can now receive multiple signals at once. this must be like this, because else he would not be able to receive up and right at the same time

File:
1 edited

Legend:

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

    r3755 r3764  
    236236  PRINTF(3)("recieved command [%s]\n", cmd->cmd);
    237237  if( !strcmp( cmd->cmd, "up")) this->bUp = !cmd->bUp;
    238   else if( !strcmp( cmd->cmd, "down")) this->bDown = !cmd->bUp;
    239   else if( !strcmp( cmd->cmd, "left")) this->bLeft = !cmd->bUp;
    240   else if( !strcmp( cmd->cmd, "right")) this->bRight = !cmd->bUp;
    241   else if( !strcmp( cmd->cmd, "fire")) this->bFire = !cmd->bUp;
    242   else if( !strcmp( cmd->cmd, "mode")) this->bWeaponChange = !cmd->bUp;
    243 }
     238  if( !strcmp( cmd->cmd, "down")) this->bDown = !cmd->bUp;
     239  if( !strcmp( cmd->cmd, "left")) this->bLeft = !cmd->bUp;
     240  if( !strcmp( cmd->cmd, "right")) this->bRight = !cmd->bUp;
     241  if( !strcmp( cmd->cmd, "fire")) this->bFire = !cmd->bUp;
     242  if( !strcmp( cmd->cmd, "mode")) this->bWeaponChange = !cmd->bUp;
     243}
Note: See TracChangeset for help on using the changeset viewer.