Fix side switching.

master
Icedream 2016-04-10 00:13:00 +02:00
parent d04a0030b1
commit ee4bae83f1
1 changed files with 4 additions and 5 deletions

View File

@ -226,12 +226,9 @@ onStartGameType()
// Define who's seekers and who's hiders
if (!IsDefined(game["seekers"]) || !IsDefined(game["hiders"]))
{
game["seekers"] = "allies";
game["hiders"] = "axis";
// compatibility with the game's own game logic
game["attackers"] = game["seekers"];
game["defenders"] = game["hiders"];
game["seekers"] = game["attackers"];
game["hiders"] = game["defenders"];
}
// handle side switching
@ -241,6 +238,8 @@ onStartGameType()
oldHiders = game["hiders"];
game["seekers"] = oldHiders;
game["hiders"] = oldSeekers;
game["attackers"] = game["seekers"];
game["defenders"] = game["hiders"];
}
// team setup