improved error handling code when mapping EM engine cave/game elements
[rocksndiamonds.git] / src / game_em / cave.c
index 42d2eb0aa63cad7c031188a39e63261472fb95e3..fc872e9c8b994838bf7f7b6a9a7882b9f6b61e21 100644 (file)
@@ -70,18 +70,18 @@ void setLevelInfoToDefaults_EM(void)
 
   for (i = 0; i < 8; i++)
     for (j = 0; j < 9; j++)
-      cav.eater_array[i][j] = Xblank;
+      cav.eater_array[i][j] = Cblank;
 
   for (i = 0; i < 8; i++)
     for (j = 0; j < 8; j++)
-      cav.ball_array[i][j] = Xblank;
+      cav.ball_array[i][j] = Cblank;
 
-  for (i = 0; i < TILE_MAX; i++)
-    cav.android_array[i] = Xblank;
+  for (i = 0; i < GAME_TILE_MAX; i++)
+    cav.android_array[i] = Cblank;
 
   for (x = 0; x < CAVE_WIDTH; x++)
     for (y = 0; y < CAVE_HEIGHT; y++)
-      cav.cave[x][y] = Zborder;
+      cav.cave[x][y] = Cblank;
 }