- fixed typo in floor damage check.

This rendered the boots ineffective on lava.
Fixes #114
This commit is contained in:
Christoph Oelckers 2020-08-07 23:30:08 +02:00
parent dfa3519ebc
commit d731bf4e57
2 changed files with 3 additions and 3 deletions

View file

@ -2813,7 +2813,7 @@ void processinput_d(int snum)
if (p->on_ground && truefdist <= PHEIGHT + (16 << 8))
{
int whichsound = j == HURTRAIL ? 0 : j == FLOORSLIME ? 1 : j == FLOORPLASMA ? 3 : -1;
int whichsound = j == HURTRAIL ? 0 : j == FLOORSLIME ? 1 : j == FLOORPLASMA ? 2 : -1;
if (j >= 0) k = makepainsounds(snum, whichsound);
}

View file

@ -3710,8 +3710,8 @@ void processinput_r(int snum)
if (p->on_ground && truefdist <= PHEIGHT + (16 << 8))
{
int whichsound = j == HURTRAIL ? 0 : j == FLOORSLIME ? 1 : j == FLOORPLASMA ? 3 :
(isRRRA() && (j == RRTILE7768 || j == RRTILE7820) ? 4 : -1);
int whichsound = j == HURTRAIL ? 0 : j == FLOORSLIME ? 1 : j == FLOORPLASMA ? 2 :
(isRRRA() && (j == RRTILE7768 || j == RRTILE7820) ? 3 : -1);
if (j >= 0) k = makepainsounds(snum, whichsound);
}