mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-10 06:42:22 +00:00
Only start monsters with max_health == health if max_health isn't set.
I dont' know if any monsters start with max_health != health, but this looks more correct. This was reported by maraakate in yquake2 issue 160.
This commit is contained in:
parent
be91d27005
commit
0e00bb0d9f
1 changed files with 6 additions and 1 deletions
|
@ -948,7 +948,12 @@ monster_start(edict_t *self)
|
||||||
self->takedamage = DAMAGE_AIM;
|
self->takedamage = DAMAGE_AIM;
|
||||||
self->air_finished = level.time + 12;
|
self->air_finished = level.time + 12;
|
||||||
self->use = monster_use;
|
self->use = monster_use;
|
||||||
self->max_health = self->health;
|
|
||||||
|
if(!self->max_health)
|
||||||
|
{
|
||||||
|
self->max_health = self->health;
|
||||||
|
}
|
||||||
|
|
||||||
self->clipmask = MASK_MONSTERSOLID;
|
self->clipmask = MASK_MONSTERSOLID;
|
||||||
|
|
||||||
self->s.skinnum = 0;
|
self->s.skinnum = 0;
|
||||||
|
|
Loading…
Reference in a new issue