- Keep all damage factors in the table, even those that are 1.0.

- 256 is a valid pain chance, so clamp to that, not 255.

SVN r2237 (trunk)
This commit is contained in:
Randy Heit 2010-03-22 21:18:54 +00:00
commit 0ca693771b
3 changed files with 6 additions and 11 deletions

View file

@ -1285,7 +1285,7 @@ void P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage
painchance = target->PainChance;
if (pc != NULL)
{
BYTE * ppc = pc->CheckKey(mod);
int *ppc = pc->CheckKey(mod);
if (ppc != NULL)
{
painchance = *ppc;