]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_domination.qc
Remove oldself variables
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_domination.qc
index 21179e912c536e16875aeb5963b44156adf3a588..322c7e0dd68235447dd533632e3e851f05ed7339 100644 (file)
@@ -544,7 +544,6 @@ void ScoreRules_dom(float teams)
 // code from here on is just to support maps that don't have control point and team entities
 void dom_spawnteam (string teamname, float teamcolor, string pointmodel, float pointskin, string capsound, string capnarration, string capmessage)
 {SELFPARAM();
-       entity oldself = self;
        setself(spawn());
        self.classname = "dom_team";
        self.netname = teamname;
@@ -565,19 +564,18 @@ void dom_spawnteam (string teamname, float teamcolor, string pointmodel, float p
        self.team = self.cnt + 1;
 
        //eprint(self);
-       setself(oldself);
+       setself(this);
 }
 
 void dom_spawnpoint(vector org)
 {SELFPARAM();
-       entity oldself = self;
        setself(spawn());
        self.classname = "dom_controlpoint";
        self.think = spawnfunc_dom_controlpoint;
        self.nextthink = time;
        setorigin(self, org);
        spawnfunc_dom_controlpoint();
-       setself(oldself);
+       setself(this);
 }
 
 // spawn some default teams if the map is not set up for domination