rnd-20060225-1-src
[rocksndiamonds.git] / src / events.c
index f9627a15be4f54d2a5f5524fe998d68c4874aa2a..f478a86bee482edd481952a5cee3325d92fcb776 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 == 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);