moved cave arrays and pointers for EM engine to level structure
[rocksndiamonds.git] / src / game_em / convert.c
index d009b7403927b71c14b99724aad89b1e25f8ef45..04f46309041a592357ea277fd2a44070f4f319a4 100644 (file)
@@ -940,15 +940,15 @@ void prepare_em_level(void)
 
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
-      Cave[y][x] = native_em_level.cave[x][y];
+      lev.cave[x][y] = native_em_level.cave[x][y];
 
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
-      Next[y][x] = Cave[y][x];
+      lev.next[x][y] = lev.cave[x][y];
 
   for (y = 0; y < HEIGHT; y++)
     for (x = 0; x < WIDTH; x++)
-      Draw[y][x] = Cave[y][x];
+      lev.draw[x][y] = lev.cave[x][y];
 
   lev.time_initial = lev.time_seconds;
   lev.time = lev.time_initial;
@@ -1021,7 +1021,7 @@ void prepare_em_level(void)
 
        native_em_level.cave[x][y] = Xblank;
 
-       Cave[y][x] = Next[y][x] = Draw[y][x] = Xblank;
+       lev.cave[x][y] = lev.next[x][y] = lev.draw[x][y] = Xblank;
       }
     }
   }