mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-01-20 00:11:32 +00:00
Merge pull request #1008 from BjossiAlfreds/makrondeath-fix
Fixed despawning makron torso
This commit is contained in:
commit
e0dd7c9d00
1 changed files with 8 additions and 1 deletions
|
@ -833,7 +833,14 @@ makron_torso_think(edict_t *self)
|
|||
return;
|
||||
}
|
||||
|
||||
if (self->owner && self->owner->inuse && self->owner->deadflag != DEAD_DEAD)
|
||||
/* detach from the makron if the legs are gone completely */
|
||||
if (self->owner && (!self->owner->inuse || (self->owner->health <= self->owner->gib_health)))
|
||||
{
|
||||
self->owner = NULL;
|
||||
}
|
||||
|
||||
/* if the makron is revived the torso was put back on him */
|
||||
if (self->owner && self->owner->deadflag != DEAD_DEAD)
|
||||
{
|
||||
G_FreeEdict(self);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue