attempt to fix OoS bug

This commit is contained in:
Dave White 2004-04-07 18:13:11 +00:00
parent 0074d43b41
commit a4e4b933df
2 changed files with 1 additions and 2 deletions

View file

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

View file

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