+void game_init_random(void)
+{
+ game_em.random = 1684108901; /* what a nice seed */
+}
+
+void game_init_cave_buffers(void)
+{
+ int x, y;
+
+ for (x = 0; x < CAVE_BUFFER_WIDTH; x++)
+ {
+ for (y = 0; y < CAVE_BUFFER_HEIGHT; y++)
+ {
+ lev.cavebuf[x][y] = Zborder;
+ lev.nextbuf[x][y] = Zborder;
+ lev.drawbuf[x][y] = Zborder;
+ lev.boombuf[x][y] = Xblank;
+ }
+
+ lev.cavecol[x] = lev.cavebuf[x];
+ lev.nextcol[x] = lev.nextbuf[x];
+ lev.drawcol[x] = lev.drawbuf[x];
+ lev.boomcol[x] = lev.boombuf[x];
+ }
+
+ lev.cave = lev.cavecol;
+ lev.next = lev.nextcol;
+ lev.draw = lev.drawcol;
+ lev.boom = lev.boomcol;
+}
+