]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/gamestart.qc
Merge branch 'master' into terencehill/infomessages_panel_update
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / gamestart.qc
index c083fc187bb5edc01ba19673e40f37e9553d40a7..efddf8c77f89eb99787af0075e448e1035ad4082 100644 (file)
@@ -5,20 +5,23 @@ void gamestart_use(entity this, entity actor, entity trigger)
        remove(this);
 }
 
-void self_spawnfunc_trigger_gamestart();
+void gamestart_use_this(entity this)
+{
+       gamestart_use(this, NULL, NULL);
+}
+
 spawnfunc(trigger_gamestart)
 {
-       this.use1 = gamestart_use;
-       this.reset2 = self_spawnfunc_trigger_gamestart;
+       this.use = gamestart_use;
+       this.reset2 = spawnfunc_trigger_gamestart;
 
        if(this.wait)
        {
-               this.think = adaptor_think2use;
+               setthink(this, adaptor_think2use);
                this.nextthink = game_starttime + this.wait;
        }
        else
-               InitializeEntity(this, adaptor_think2use, INITPRIO_FINDTARGET);
+               InitializeEntity(this, gamestart_use_this, INITPRIO_FINDTARGET);
 }
-void self_spawnfunc_trigger_gamestart() { SELFPARAM(); spawnfunc_trigger_gamestart(this); }
 
 #endif