- RandomEM = 1684108901;
-
- for (y = 0; y < HEIGHT; y++)
- for (x = 0; x < WIDTH; x++)
- Array[0][y][x] = ZBORDER;
- for (y = 0; y < HEIGHT; y++)
- for (x = 0; x < WIDTH; x++)
- Array[1][y][x] = ZBORDER;
- for (y = 0; y < HEIGHT; y++)
- for (x = 0; x < WIDTH; x++)
- Array[2][y][x] = ZBORDER;
- for (y = 0; y < HEIGHT; y++)
- for (x = 0; x < WIDTH; x++)
- Array[3][y][x] = Xblank;
-
- for (y = 0; y < HEIGHT; y++)
- Index[0][y] = Array[0][y];
- for (y = 0; y < HEIGHT; y++)
- Index[1][y] = Array[1][y];
- for (y = 0; y < HEIGHT; y++)
- Index[2][y] = Array[2][y];
- for (y = 0; y < HEIGHT; y++)
- Index[3][y] = Array[3][y];
-
- Cave = Index[0];
- Next = Index[1];
- Draw = Index[2];
- Boom = Index[3];
+ for (y = 0; y < CAVE_BUFFER_HEIGHT; y++)
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.cavebuf[x][y] = Zborder;
+ for (y = 0; y < CAVE_BUFFER_HEIGHT; y++)
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.nextbuf[x][y] = Zborder;
+ for (y = 0; y < CAVE_BUFFER_HEIGHT; y++)
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.drawbuf[x][y] = Zborder;
+ for (y = 0; y < CAVE_BUFFER_HEIGHT; y++)
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.boombuf[x][y] = Xblank;
+
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.cavecol[x] = lev.cavebuf[x];
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.nextcol[x] = lev.nextbuf[x];
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.drawcol[x] = lev.drawbuf[x];
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ lev.boomcol[x] = lev.boombuf[x];
+
+ lev.cave = lev.cavecol;
+ lev.next = lev.nextcol;
+ lev.draw = lev.drawcol;
+ lev.boom = lev.boomcol;