hmon() arg fix

The call to hmon() in flooreffects() was passing a boolean where int
is expected.  The 'thrown' argument may have once been a boolean, but
it is 'int' for as far back as the repository history goes.
This commit is contained in:
PatR
2017-10-01 08:16:56 -07:00
parent 2804e750a0
commit f18524bef9

View File

@@ -159,7 +159,9 @@ const char *verb;
if (mtmp) {
if (!passes_walls(mtmp->data) && !throws_rocks(mtmp->data)) {
int dieroll = rnd(20);
if (hmon(mtmp, obj, TRUE, dieroll) && !is_whirly(mtmp->data))
if (hmon(mtmp, obj, HMON_THROWN, dieroll)
&& !is_whirly(mtmp->data))
return FALSE; /* still alive */
}
mtmp->mtrapped = 0;