set the race for all human players
This commit is contained in:
parent
7ca62c6949
commit
05e38e8fc7
1 changed files with 6 additions and 6 deletions
|
@ -1824,15 +1824,15 @@ void NetworkGamePrepareGameSettings()
|
|||
}
|
||||
}
|
||||
for (int i = 0; i < h; i++) {
|
||||
int v = ServerSetupState.Race[num[i]];
|
||||
if (v != 0) {
|
||||
GameSettings.Presets[num[i]].Race = v;
|
||||
} else {
|
||||
GameSettings.Presets[num[i]].Race = SettingsPresetMapDefault;
|
||||
}
|
||||
switch (ServerSetupState.CompOpt[num[i]]) {
|
||||
case 0: {
|
||||
GameSettings.Presets[num[i]].Type = PlayerPerson;
|
||||
int v = ServerSetupState.Race[num[i]];
|
||||
if (v != 0) {
|
||||
GameSettings.Presets[num[i]].Race = v;
|
||||
} else {
|
||||
GameSettings.Presets[num[i]].Race = SettingsPresetMapDefault;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1:
|
||||
|
|
Loading…
Add table
Reference in a new issue