- 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:
parent
d1f9b94743
commit
0ca693771b
3 changed files with 6 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue