fix oos when undoing after ally chat 2

for extra safety we add code to ensure undo=no for [speak] commands to the client aswell, this is not really needed as i just added a code that sets undo=yes to the server code, but it's an advantage to be able to safely connect to older servers aswell.
This commit is contained in:
gfgtdf 2018-08-06 17:52:38 +02:00
parent 02bed5c033
commit c685031d1c

View file

@ -649,6 +649,9 @@ void replay::add_config(const config& cfg, MARK_SENT mark)
if(mark == MARK_AS_SENT) {
cmd_cfg["sent"] = true;
}
if(cmd_cfg.has_child("speak")) {
cmd_cfg["undo"] = false;
}
}
}
bool replay::add_start_if_not_there_yet()