X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=082dbbd6b6661f0e0e9b01c1078a0da2a45020b5;hb=8f9acd5c2b629740b5f08842df2b8962d60416e6;hp=9514b1f5d670cd6ac6537dad4ef7391bbaad2502;hpb=8d8ab8ed86cab6b938ce26f97b02ffe2cf948e4c;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index 9514b1f5..082dbbd6 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -16,32 +16,35 @@ 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 < HEIGHT; y++) - for (x = 0; x < WIDTH; x++) + 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 < HEIGHT; y++) - for (x = 0; x < WIDTH; x++) + 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 < HEIGHT; y++) - for (x = 0; x < WIDTH; x++) + 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 < HEIGHT; y++) - for (x = 0; x < WIDTH; x++) + 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 < WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.cavecol[x] = lev.cavebuf[x]; - for (x = 0; x < WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.nextcol[x] = lev.nextbuf[x]; - for (x = 0; x < WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.drawcol[x] = lev.drawbuf[x]; - for (x = 0; x < WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.boomcol[x] = lev.boombuf[x]; lev.cave = lev.cavecol; @@ -79,13 +82,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(); }