void readjoy(byte, struct PLAYER *);
void game_initscreen(void);
-void game_init_vars(void);
+void game_init_random(void);
+void game_init_cave_buffers(void);
void play_sound(int, int, int);
void play_element_sound(int, int, int, int);
/* after "open_all()", because we need the graphic bitmaps to be defined */
tab_generate_graphics_info_em();
- game_init_vars();
+ game_init_random();
+ game_init_cave_buffers();
}
void em_close_all(void)
struct EngineSnapshotInfo_EM engine_snapshot_em;
-void game_init_vars(void)
+void game_init_random(void)
{
- int x, y;
-
RandomEM = 1684108901;
+}
+
+void game_init_cave_buffers(void)
+{
+ int x, y;
for (y = 0; y < CAVE_BUFFER_HEIGHT; y++)
for (x = 0; x < CAVE_BUFFER_WIDTH; x++)