Fix side switching.
parent
d04a0030b1
commit
ee4bae83f1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue