X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=7eccf546178f894186ff1f0e9240cbcc70708e9e;hb=56be9668e4ff713c8fff9b105f0913dd4d373cb1;hp=70106b1d85cdc6bd7e71a4176dc8fb121b442b92;hpb=dd11b3af00799f1dcd34481281bb219216ac9a4b;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index 70106b1d..7eccf546 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -8,7 +8,8 @@ unsigned int RandomEM; -struct LEVEL lev; +struct CAVE cav; +struct LOGIC lev; struct PLAYER ply[MAX_PLAYERS]; extern int screen_x; @@ -16,11 +17,14 @@ extern int screen_y; 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++) @@ -79,13 +83,13 @@ void GameActions_EM(byte action[MAX_PLAYERS], boolean warp_mode) if (frame == 7) { - logic_1(); - logic_2(); + logic_players(); + logic_objects(); } if (frame == 6) { - logic_3(); + logic_globals(); UpdateGameDoorValues_EM(); }