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:
Chris Beck 2014-04-12 01:20:52 -04:00
parent ae351052a5
commit 6b8e303ee2

View file

@ -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();
}
}