X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fevents.c;h=f478a86bee482edd481952a5cee3325d92fcb776;hb=a765d70dda7da4500e7005ffa5913e24cd32c0fa;hp=f9627a15be4f54d2a5f5524fe998d68c4874aa2a;hpb=49c6dea89a293093a952b991594980b469dd835a;p=rocksndiamonds.git diff --git a/src/events.c b/src/events.c index f9627a15..f478a86b 100644 --- a/src/events.c +++ b/src/events.c @@ -700,9 +700,12 @@ void HandleKey(Key key, int key_status) if (game_status == GAME_MODE_PLAYING) { - for (i = 0; i < MAX_PLAYERS; i++) - if (key == KSYM_1 + i) - game.centered_to_player_next = i; + if (key == KSYM_5) + game.centered_player_nr_next = -1; + else + for (i = 0; i < MAX_PLAYERS; i++) + if (key == KSYM_1 + i) + game.centered_player_nr_next = i; } HandleKeysSpecial(key);