Fix to issue which prevented multiplayer race selection from working properly
This commit is contained in:
parent
2ac852775d
commit
b84bb69423
1 changed files with 2 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue