Skip to content

Commit

Permalink
MP: don't display both Pause and Continue Network Game menu entries a…
Browse files Browse the repository at this point in the history
…t the same time

Fixes #2460.
  • Loading branch information
Vultraz committed Feb 11, 2018
1 parent 20d9735 commit f5a268d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotkey/hotkey_handler_mp.cpp
Expand Up @@ -68,8 +68,10 @@ bool playmp_controller::hotkey_handler::can_execute_command(const hotkey::hotkey
res = playmp_controller_.is_networked_mp();
break;
case hotkey::HOTKEY_START_NETWORK:
res = is_observer() && playmp_controller_.network_processing_stopped_;
break;
case hotkey::HOTKEY_STOP_NETWORK:
res = is_observer();
res = is_observer() && !playmp_controller_.network_processing_stopped_;
break;
default:
return playsingle_controller::hotkey_handler::can_execute_command(cmd, index);
Expand Down

0 comments on commit f5a268d

Please sign in to comment.