rnd-20060226-3-src
[rocksndiamonds.git] / src / events.c
index f9627a15be4f54d2a5f5524fe998d68c4874aa2a..4d7a7a36d68ee479fb0b8c1644c6935f5a5212cf 100644 (file)
@@ -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 == setup.shortcut.focus_player_all)
+      game.centered_player_nr_next = -1;
+    else
+      for (i = 0; i < MAX_PLAYERS; i++)
+       if (key == setup.shortcut.focus_player[i])
+         game.centered_player_nr_next = i;
   }
 
   HandleKeysSpecial(key);