Fix spawnflag behaviour for trigger_hurt, patch by DevHC

This commit is contained in:
Thilo Schulz 2011-05-10 11:11:37 +00:00
parent 9706e6ca29
commit 4374ff6ce9

View file

@ -392,12 +392,13 @@ void SP_trigger_hurt( gentity_t *self ) {
self->r.contents = CONTENTS_TRIGGER;
if ( self->spawnflags & 2 ) {
self->use = hurt_use;
}
// link in to the world if starting active
if ( ! (self->spawnflags & 1) ) {
if ( self->spawnflags & 1 ) {
trap_UnlinkEntity (self);
}
else {
trap_LinkEntity (self);
}
}