Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 17, 2005, 2:15:33 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: fixed movement bug (was in the lists), modified the player

File:
1 edited

Legend:

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

    r3585 r3586  
    167167  //orthDirection = orthDirection.cross (direction);
    168168
    169   if( bUp) { accel = accel+(direction*acceleration); }
    170   if( bDown) { accel = accel-(direction*acceleration); }
    171   if( bLeft ) { accel = accel - (orthDirection*acceleration); }
    172   if( bRight ) { accel = accel + (orthDirection*acceleration); }
    173   if( bAscend ) { /* not yet implemented but just: (0,0,1)*acceleration */}
    174   if( bDescend) {/* FIXME */} /* \todo up and down player movement */
     169  if( this->bUp) { accel = accel+(direction*acceleration); }
     170  if( this->bDown) { accel = accel-(direction*acceleration); }
     171  if( this->bLeft ) { accel = accel - (orthDirection*acceleration); }
     172  if( this->bRight ) { accel = accel + (orthDirection*acceleration); }
     173  if( this->bAscend ) { /* not yet implemented but just: (0,0,1)*acceleration */}
     174  if( this->bDescend) {/* FIXME */} /* \todo up and down player movement */
    175175
    176176  Vector move = accel * time;
     
    211211  else if( !strcmp( cmd->cmd, "right")) this->bRight = !cmd->bUp;
    212212  else if( !strcmp( cmd->cmd, "fire")) this->bFire = !cmd->bUp;
    213   else if( !strcmp( cmd->cmd, "weapon_mode")) this->bWeaponChange = !cmd->bUp;
    214 }
     213  else if( !strcmp( cmd->cmd, "mode")) this->bWeaponChange = !cmd->bUp;
     214}
Note: See TracChangeset for help on using the changeset viewer.