attempt to fix OoS bug
This commit is contained in:
parent
0074d43b41
commit
a4e4b933df
2 changed files with 1 additions and 2 deletions
|
@ -195,7 +195,7 @@ bool turn_info::turn_over() const { return end_turn_; }
|
|||
|
||||
int turn_info::send_data(int first_command)
|
||||
{
|
||||
if(network::nconnections() > 0 && (undo_stack_.empty() || end_turn_) &&
|
||||
if(!browse_ && network::nconnections() > 0 && (undo_stack_.empty() || end_turn_) &&
|
||||
first_command < recorder.ncommands()) {
|
||||
config cfg;
|
||||
const config& obj = cfg.add_child("turn",recorder.get_data_range(first_command,recorder.ncommands()));
|
||||
|
|
|
@ -777,7 +777,6 @@ bool do_replay(display& disp, const gamemap& map, const game_data& gameinfo,
|
|||
advancing_units.push_back(tgt->first);
|
||||
}
|
||||
} else if((child = cfg->child("speak")) != NULL) {
|
||||
// dialogs::unit_speak(*child,disp,units);
|
||||
disp.add_chat_message((*child)["description"],(*child)["message"]);
|
||||
} else if((child = cfg->child("label")) != NULL) {
|
||||
const gamemap::location loc(*child);
|
||||
|
|
Loading…
Add table
Reference in a new issue