Skip to content

Commit

Permalink
remove strange playmp_controller_.stop_network() call
Browse files Browse the repository at this point in the history
can_execute_command should just check whether a command can be executed.
Idk why we called playmp_controller_.stop_network(); there.
  • Loading branch information
gfgtdf committed Mar 1, 2015
1 parent 9e8645a commit 9d096be
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/hotkey_handler_mp.cpp
Expand Up @@ -72,11 +72,6 @@ bool playmp_controller::hotkey_handler::can_execute_command(const hotkey::hotkey
case hotkey::HOTKEY_STOP_NETWORK:
res = is_observer();
break;
case hotkey::HOTKEY_REPLAY_STOP:
if (is_observer()){
playmp_controller_.stop_network();
}
break;
default:
return playsingle_controller::hotkey_handler::can_execute_command(cmd, index);
}
Expand Down

0 comments on commit 9d096be

Please sign in to comment.