Fix to issue which prevented multiplayer race selection from working properly

This commit is contained in:
Andrettin 2015-11-23 11:32:32 +01:00
parent 2ac852775d
commit b84bb69423

View file

@ -1828,18 +1828,8 @@ void NetworkGamePrepareGameSettings()
case 0: {
GameSettings.Presets[num[i]].Type = PlayerPerson;
int v = ServerSetupState.Race[num[i]];
if (v != 0) {
int x = 0;
for (unsigned int n = 0; n < PlayerRaces.Count; ++n) {
if (PlayerRaces.Visible[n]) {
if (x + 1 == v) {
break;
}
++x;
}
}
GameSettings.Presets[num[i]].Race = x;
if (v != -1) {
GameSettings.Presets[num[i]].Race = v;
} else {
GameSettings.Presets[num[i]].Race = SettingsPresetMapDefault;
}