]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Sun, 27 Mar 2016 12:08:17 +0000 (22:08 +1000)
committerMario <mario@smbclan.net>
Sun, 27 Mar 2016 12:08:17 +0000 (22:08 +1000)
qcsrc/common/triggers/trigger/gamestart.qc
qcsrc/server/mutators/mutator/gamemode_assault.qc

index c083fc187bb5edc01ba19673e40f37e9553d40a7..9e2cc26e10d6e143dbb01bd71fd401694229870d 100644 (file)
@@ -5,6 +5,11 @@ void gamestart_use(entity this, entity actor, entity trigger)
        remove(this);
 }
 
+void gamestart_use_this(entity this)
+{
+       gamestart_use(this, NULL, NULL);
+}
+
 void self_spawnfunc_trigger_gamestart();
 spawnfunc(trigger_gamestart)
 {
@@ -17,7 +22,7 @@ spawnfunc(trigger_gamestart)
                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); }
 
index e358f8fba71629318d2ca471542851221da4f716..cb6d55829fd8d15bb4f52b1a8b10e11b0c1e855e 100644 (file)
@@ -232,6 +232,10 @@ void assault_roundstart_use(entity this, entity actor, entity trigger)
                WITHSELF(it, turret_respawn());
        ));
 }
+void assault_roundstart_use_this(entity this)
+{
+       assault_roundstart_use(this, NULL, NULL);
+}
 void assault_roundstart_use_self()
 {
     SELFPARAM();
@@ -427,9 +431,9 @@ spawnfunc(target_assault_roundstart)
 
        assault_attacker_team = NUM_TEAM_1;
        self.classname = "target_assault_roundstart";
-       self.use = assault_roundstart_use;
+       self.use1 = assault_roundstart_use;
        self.reset2 = assault_roundstart_use_self;
-       InitializeEntity(self, assault_roundstart_use_self, INITPRIO_FINDTARGET);
+       InitializeEntity(self, assault_roundstart_use_this, INITPRIO_FINDTARGET);
 }
 
 // legacy bot code