mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-22 20:31:50 +00:00
Set self->targetname to NULL when the head is thrown off
This should be a noop, since heads are only removed when an entity is dying or dead. Noticed by maraakate and part of yquake2 issue #160.
This commit is contained in:
parent
6f45072c26
commit
23cbffbd39
1 changed files with 1 additions and 0 deletions
|
@ -257,6 +257,7 @@ ThrowHead(edict_t *self, char *gibname, int damage, int type)
|
|||
self->flags |= FL_NO_KNOCKBACK;
|
||||
self->svflags &= ~SVF_MONSTER;
|
||||
self->takedamage = DAMAGE_YES;
|
||||
self->targetname = NULL;
|
||||
self->die = gib_die;
|
||||
|
||||
if (type == GIB_ORGANIC)
|
||||
|
|
Loading…
Reference in a new issue