Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1930 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 8, 2004, 11:10:36 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: impulses work better on slower machines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/core/player.cc

    r1929 r1930  
    7575void Player::shoot(int n)
    7676{
    77   if (shootLaser->inhibitor++ >=100)
    78     {
    79       if (shootLaser->inhibitor++ <= 150)
    80         shootLaser->addShoot(xCor, yCor, zCor);
    81       else if (shootLaser->inhibitor++ >= 250 && shootLaser->inhibitor <= 300)
    82         shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0);
    83       else if (shootLaser->inhibitor++ >= 350)
    84         shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0);
    85       if (shootLaser->inhibitor >=400)
    86         shootLaser->inhibitor =0;
    87     }
     77  if (shootLaser->inhibitor++ <= 100)
     78    shootLaser->addShoot(xCor, yCor, zCor);
     79  else if (shootLaser->inhibitor++ <= 200)
     80    shootLaser->addShootExt(xCor, yCor, zCor, .1, .4, .0);
     81  else if (shootLaser->inhibitor++ <= 300)
     82    shootLaser->addShootExt(xCor, yCor, zCor, -0.1, .4, .0);
     83  else
     84    shootLaser->inhibitor =0;
     85 
    8886  if (shootRocket->inhibitor++ >=80)
    8987    {
Note: See TracChangeset for help on using the changeset viewer.