- Fixed: "give health" without an amount would set your health to IDDQD health

instead of the player class's maximum.
- Fixed: A_CStaffCheck() assumed the player's max health was 100 instead
  of getting checking for the true maximum.


SVN r1876 (trunk)
This commit is contained in:
Randy Heit 2009-09-25 03:07:20 +00:00
commit d816747c7e
4 changed files with 19 additions and 12 deletions

View file

@ -2796,9 +2796,7 @@ FUNC(LS_ForceField)
if (it != NULL)
{
P_DamageMobj (it, NULL, NULL, 16, NAME_None);
angle_t an = (it->angle + ANGLE_180) >> ANGLETOFINESHIFT;
it->velx = FixedMul(0x7D000, finecosine[an]);
it->vely = FixedMul(0x7D000, finesine[an]);
P_ThrustMobj (it, it->angle + ANGLE_180, 0x7D000);
}
return true;
}