- Added A_ClearReFire code pointer for weapons. Preferably A_WeaponReady should

reset this counter but that can't be done due to unwanted side effects with
  existing weapons.
- Changed the 'scale' variable in CVAR(turbo) to double because the calculations
  depended on the current floating point precision setting and only worked properly
  when set to 'precise' in VC++.


SVN r1057 (trunk)
This commit is contained in:
Christoph Oelckers 2008-06-30 23:30:06 +00:00
commit ac32bd72bb
6 changed files with 25 additions and 4 deletions

View file

@ -488,6 +488,16 @@ void A_ReFire (AActor *actor)
}
}
void A_ClearReFire(AActor *actor)
{
player_t *player = actor->player;
if (NULL != player)
{
player->refire = 0;
}
}
//---------------------------------------------------------------------------
//
// PROC A_CheckReload