]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix trigger_once and trigger_multiple.wait == -1 allowing multiple activations by...
authorbones_was_here <bones_was_here@yahoo.com.au>
Tue, 11 Aug 2020 07:52:37 +0000 (17:52 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Tue, 11 Aug 2020 07:52:37 +0000 (17:52 +1000)
qcsrc/common/mapobjects/trigger/multi.qc

index 3887d7cacde77ad50331939fb03e5fbfb595f01d..0b0efc21c284d1e82cb6f253ccde21d30c6bdc3e 100644 (file)
@@ -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