projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20060222-1-src
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 4bda5189bffd6a07b103a86bebc538edfbd6ad1c..19fcafdd74fa3acdef0094efc3d36877daa621ec 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-8811,10
+8811,13
@@
void GameActions()
if (ScreenMovPos == 0) /* screen currently aligned at tile position */
{
if (ScreenMovPos == 0) /* screen currently aligned at tile position */
{
+ struct PlayerInfo *player = &stored_player[game.centered_to_player_next];
+
+ if (!player->active)
+ game.centered_to_player_next = game.centered_to_player;
+
if (game.centered_to_player != game.centered_to_player_next)
{
if (game.centered_to_player != game.centered_to_player_next)
{
- struct PlayerInfo *player = &stored_player[game.centered_to_player_next];
-
DrawRelocatePlayer(player, setup.quick_switch);
game.centered_to_player = game.centered_to_player_next;
DrawRelocatePlayer(player, setup.quick_switch);
game.centered_to_player = game.centered_to_player_next;