fixed initialization of flag for wrap-around levels in EM engine
[rocksndiamonds.git] / src / game_em / cave.c
index 821602ed328b8428e3be90848da547e7c215e8f3..e501a8917438f117cfab4a55796e1c918937a258 100644 (file)
@@ -29,16 +29,16 @@ void setLevelInfoToDefaults_EM(void)
   }
 
   cav.time_seconds     = 0;
-  cav.required         = 0;
+  cav.gems_needed      = 0;
 
   cav.eater_score      = 0;
   cav.alien_score      = 0;
   cav.bug_score                = 0;
   cav.tank_score       = 0;
+  cav.slurp_score      = 0;
+  cav.nut_score                = 0;
   cav.emerald_score    = 0;
   cav.diamond_score    = 0;
-  cav.nut_score                = 0;
-  cav.slurp_score      = 0;
   cav.dynamite_score   = 0;
   cav.key_score                = 0;
   cav.lenses_score     = 0;
@@ -51,37 +51,40 @@ void setLevelInfoToDefaults_EM(void)
   cav.amoeba_time      = 0;
   cav.wonderwall_time  = 0;
   cav.wheel_time       = 0;
-  cav.wheel_x          = 1;
-  cav.wheel_y          = 1;
+  cav.wheel_x          = 0;
+  cav.wheel_y          = 0;
   cav.lenses_time      = 0;
   cav.magnify_time     = 0;
-  cav.wind_time                = 9999;
+  cav.wind_time                = 0;
   cav.wind_direction   = 0;
 
-  cav.ball_random      = 0;
-  cav.ball_state       = 0;
-  cav.wonderwall_state = 0;
-  cav.wheel_cnt                = 0;
-  cav.lenses_cnt       = 0;
-  cav.magnify_cnt      = 0;
-  cav.wind_cnt         = 0;
+  cav.num_ball_arrays  = 8;
+
+  cav.testmode         = FALSE;
+  cav.teamwork         = FALSE;
+  cav.infinite         = TRUE;
 
-  cav.num_ball_arrays = 8;
+  cav.ball_random      = FALSE;
+  cav.ball_active      = FALSE;
+  cav.wonderwall_active        = FALSE;
+  cav.wheel_active     = FALSE;
+  cav.lenses_active    = FALSE;
+  cav.magnify_active   = FALSE;
 
   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;
 }