]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove direct reference to a team number
authorterencehill <piuntn@gmail.com>
Tue, 16 Apr 2019 18:41:36 +0000 (20:41 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 16 Apr 2019 18:42:15 +0000 (20:42 +0200)
qcsrc/common/gamemodes/gamemode/assault/sv_assault.qc
qcsrc/server/teamplay.qc

index 14266c8a74f9b2db36171e00faac3b7b41ed2d0c..835073d07d7e655f896f635de6ff560bdff34e35 100644 (file)
@@ -579,7 +579,7 @@ MUTATOR_HOOKFUNCTION(as, TurretSpawn)
        entity turret = M_ARGV(0, entity);
 
        if(!turret.team || turret.team == FLOAT_MAX)
-               turret.team = 5; // this gets reversed when match starts?
+               turret.team = assault_attacker_team; // this gets reversed when match starts (assault_roundstart_use)
 }
 
 MUTATOR_HOOKFUNCTION(as, VehicleInit)
@@ -626,7 +626,7 @@ MUTATOR_HOOKFUNCTION(as, ReadLevelCvars)
 
 MUTATOR_HOOKFUNCTION(as, OnEntityPreSpawn)
 {
-    entity ent = M_ARGV(0, entity);
+       entity ent = M_ARGV(0, entity);
 
        switch(ent.classname)
        {
index c19b85fe21bdf6bb0c892570bc77270cb3235d5a..f2e24a7a57a0722d69af094465d76cb7f8118505 100644 (file)
@@ -464,8 +464,8 @@ entity TeamBalance_CheckAllowedTeams(entity for_whom)
                team_ent.m_num_bots = 0;
        }
        setthink(balance, TeamBalance_Destroy);
-       
-       int teams_mask = 0;     
+
+       int teams_mask = 0;
        string teament_name = string_null;
        bool mutator_returnvalue = MUTATOR_CALLHOOK(TeamBalance_CheckAllowedTeams,
                teams_mask, teament_name, for_whom);