rnd-19990219-1
authorHolger Schemel <info@artsoft.org>
Fri, 19 Feb 1999 01:01:24 +0000 (02:01 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:33:45 +0000 (10:33 +0200)
src/game.c

index f66cd400858a100f9add6ab75b57fc9814883155..253827d31d7de1b3c315585d006cc1f198588ed1 100644 (file)
@@ -199,6 +199,7 @@ static void InitField(int x, int y, boolean init_game)
        if (!options.network || player->connected)
        {
          player->active = TRUE;
+         player->gone = FALSE;
 
          /* remove potentially duplicate players */
          if (StorePlayer[jx][jy] == Feld[x][y])
@@ -384,7 +385,7 @@ void InitGame()
 
     player->snapped = FALSE;
 
-    player->gone = FALSE;
+    player->gone = TRUE;
 
     player->last_jx = player->last_jy = 0;
     player->jx = player->jy = 0;
@@ -471,6 +472,7 @@ void InitGame()
        {
          player->present = TRUE;
          player->active = TRUE;
+         player->gone = FALSE;
          some_player->present = FALSE;
 
          StorePlayer[jx][jy] = player->element_nr;
@@ -495,6 +497,7 @@ void InitGame()
        int jx = player->jx, jy = player->jy;
 
        player->active = FALSE;
+       player->gone = TRUE;
        StorePlayer[jx][jy] = 0;
        Feld[jx][jy] = EL_LEERRAUM;
       }
@@ -516,6 +519,7 @@ void InitGame()
            int jx = player->jx, jy = player->jy;
 
            player->active = FALSE;
+           player->gone = TRUE;
            StorePlayer[jx][jy] = 0;
            Feld[jx][jy] = EL_LEERRAUM;
          }