Don't allow returning to playing mode until the replay finishes (#2508)
This fixes an assertion failure I got while trying to reproduce #2508, and is the fix @gfgtdf recommended. Note that #2508 is a different bug (an unhandled exception rather than an assertion failure) and this commit doesn't fix it.
This commit is contained in:
parent
a3b513e8b8
commit
dfbfd924fb
1 changed files with 1 additions and 1 deletions
|
@ -294,7 +294,7 @@ bool playsingle_controller::hotkey_handler::can_execute_command(const hotkey::ho
|
|||
case hotkey::HOTKEY_REPLAY_RESET:
|
||||
return playsingle_controller_.get_replay_controller() && playsingle_controller_.get_replay_controller()->can_execute_command(cmd, index);
|
||||
case hotkey::HOTKEY_REPLAY_EXIT:
|
||||
return playsingle_controller_.is_replay();
|
||||
return playsingle_controller_.is_replay() && (!playsingle_controller_.is_networked_mp() || resources::recorder->at_end());
|
||||
default: return play_controller::hotkey_handler::can_execute_command(cmd, index);
|
||||
}
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue