From 49780802334dbf886d3803c58ff7a783416cd241 Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Tue, 11 Aug 2020 17:52:37 +1000 Subject: [PATCH] Fix trigger_once and trigger_multiple.wait == -1 allowing multiple activations by another map entity --- qcsrc/common/mapobjects/trigger/multi.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/common/mapobjects/trigger/multi.qc b/qcsrc/common/mapobjects/trigger/multi.qc index 3887d7cac..0b0efc21c 100644 --- a/qcsrc/common/mapobjects/trigger/multi.qc +++ b/qcsrc/common/mapobjects/trigger/multi.qc @@ -52,6 +52,7 @@ void multi_trigger(entity this) { // we can't just delete(this) here, because this is a touch function // called while C code is looping through area links... settouch(this, func_null); + this.use = func_null; } } @@ -133,6 +134,7 @@ void multi_reset(entity this) setthink(this, func_null); this.nextthink = 0; this.team = this.team_saved; + this.use = multi_use; } /*QUAKED spawnfunc_trigger_multiple (.5 .5 .5) ? notouch -- 2.39.2