mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Fix spawnflag behaviour for trigger_hurt, patch by DevHC
This commit is contained in:
parent
9706e6ca29
commit
4374ff6ce9
1 changed files with 5 additions and 4 deletions
|
@ -392,12 +392,13 @@ void SP_trigger_hurt( gentity_t *self ) {
|
|||
|
||||
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
|
||||
if ( ! (self->spawnflags & 1) ) {
|
||||
if ( self->spawnflags & 1 ) {
|
||||
trap_UnlinkEntity (self);
|
||||
}
|
||||
else {
|
||||
trap_LinkEntity (self);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue