]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_tdm.qc
Use SELFPARAM() in every function that uses self
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_tdm.qc
index ad3a15b5f21784ef54e4cc10e98a7f828266b659..e9a95c1f891fb33750efc5d07d9c8a79b93a586b 100644 (file)
@@ -9,7 +9,7 @@ Keys:
 "netname" Name of the team (for example Red, Blue, Green, Yellow, Life, Death, Offense, Defense, etc)...
 "cnt" Scoreboard color of the team (for example 4 is red and 13 is blue)... */
 void spawnfunc_tdm_team()
-{
+{SELFPARAM();
        if(!g_tdm) { remove(self); return; }
 
        self.classname = "tdm_team";
@@ -18,7 +18,7 @@ void spawnfunc_tdm_team()
 
 // code from here on is just to support maps that don't have team entities
 void tdm_SpawnTeam (string teamname, float teamcolor)
-{
+{SELFPARAM();
        entity oldself;
        oldself = self;
        self = spawn();