Fix monsters not fighting back when attacked by a a parasite.

This is another corner case. Parasites have a bbox height of 24,
walkmonster_start_go() hardcodes a viewheight of 25. Therefor most
traces in other functions like visible() overshoot the parasite.
Fix this by not overriding the monster viewheight.

Analyzed and fix suggested by @BjossiAlfreds. Closes issue #440.
This commit is contained in:
Yamagi Burmeister 2019-09-06 06:49:28 +02:00
parent cd93737eb7
commit 34c27cd2c7

View file

@ -953,7 +953,10 @@ walkmonster_start_go(edict_t *self)
self->yaw_speed = 20; self->yaw_speed = 20;
} }
self->viewheight = 25; if (!self->viewheight)
{
self->viewheight = 25;
}
monster_start_go(self); monster_start_go(self);