X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_em%2Finput.c;h=70106b1d85cdc6bd7e71a4176dc8fb121b442b92;hb=dd11b3af00799f1dcd34481281bb219216ac9a4b;hp=3883bbda97a3bf0fadaf3ecda9eb4f75dd1c6d9d;hpb=52ae89df67ad56dbb6302fd9e85ad45279554a4c;p=rocksndiamonds.git diff --git a/src/game_em/input.c b/src/game_em/input.c index 3883bbda..70106b1d 100644 --- a/src/game_em/input.c +++ b/src/game_em/input.c @@ -22,26 +22,26 @@ void game_init_vars(void) RandomEM = 1684108901; - for (y = 0; y < CAVE_HEIGHT; y++) - for (x = 0; x < CAVE_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 < CAVE_HEIGHT; y++) - for (x = 0; x < CAVE_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 < CAVE_HEIGHT; y++) - for (x = 0; x < CAVE_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 < CAVE_HEIGHT; y++) - for (x = 0; x < CAVE_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 < CAVE_WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.cavecol[x] = lev.cavebuf[x]; - for (x = 0; x < CAVE_WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.nextcol[x] = lev.nextbuf[x]; - for (x = 0; x < CAVE_WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.drawcol[x] = lev.drawbuf[x]; - for (x = 0; x < CAVE_WIDTH; x++) + for (x = 0; x < CAVE_BUFFER_WIDTH; x++) lev.boomcol[x] = lev.boombuf[x]; lev.cave = lev.cavecol;