Fix spawnflag behaviour for trigger_hurt, patch by DevHC
This commit is contained in:
parent
9706e6ca29
commit
4374ff6ce9
|
@ -392,12 +392,13 @@ void SP_trigger_hurt( gentity_t *self ) {
|
||||||
|
|
||||||
self->r.contents = CONTENTS_TRIGGER;
|
self->r.contents = CONTENTS_TRIGGER;
|
||||||
|
|
||||||
if ( self->spawnflags & 2 ) {
|
|
||||||
self->use = hurt_use;
|
self->use = hurt_use;
|
||||||
}
|
|
||||||
|
|
||||||
// link in to the world if starting active
|
// link in to the world if starting active
|
||||||
if ( ! (self->spawnflags & 1) ) {
|
if ( self->spawnflags & 1 ) {
|
||||||
|
trap_UnlinkEntity (self);
|
||||||
|
}
|
||||||
|
else {
|
||||||
trap_LinkEntity (self);
|
trap_LinkEntity (self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue