fixup server controller tweaks
server was not properly handling empty sides in the initial level thanks to gfgtdf for tracking this down and spotting the coding mistake.
This commit is contained in:
parent
ae351052a5
commit
6b8e303ee2
1 changed files with 4 additions and 1 deletions
|
@ -382,9 +382,12 @@ void game::update_side_data() {
|
|||
side_controllers_[side_num] = "ai"; //on server this field should only contain "ai" for ais. (there are no ais local to server)
|
||||
sides_[side_num] = owner_;
|
||||
side_found = true;
|
||||
} else {
|
||||
// "null"
|
||||
side_controllers_[side_num] = (**side)["controller"].to_string();
|
||||
}
|
||||
} else {
|
||||
// "null", "reserved"
|
||||
// "reserved"
|
||||
side_controllers_[side_num] = (**side)["controller"].to_string();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue