projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added separate playfield and buffer sizes for EM engine caves
[rocksndiamonds.git]
/
src
/
game_em
/
graphics.c
diff --git
a/src/game_em/graphics.c
b/src/game_em/graphics.c
index c6c1d5428496dbe0b89699251ca694dfbe2a7e96..548b24db1c7e29680e687fa64fa1b9673665e04d 100644
(file)
--- a/
src/game_em/graphics.c
+++ b/
src/game_em/graphics.c
@@
-300,8
+300,8
@@
static void animscreen(void)
};
if (!game.use_native_emc_graphics_engine)
};
if (!game.use_native_emc_graphics_engine)
- for (y = 2; y < CAVE_HEIGHT - 2; y++)
- for (x = 2; x < CAVE_WIDTH - 2; x++)
+ for (y = 2; y < CAVE_
BUFFER_
HEIGHT - 2; y++)
+ for (x = 2; x < CAVE_
BUFFER_
WIDTH - 2; x++)
SetGfxAnimation_EM(&graphic_info_em_object[lev.draw[x][y]][frame],
lev.draw[x][y], 7 - frame, x - 2, y - 2);
SetGfxAnimation_EM(&graphic_info_em_object[lev.draw[x][y]][frame],
lev.draw[x][y], 7 - frame, x - 2, y - 2);
@@
-326,8
+326,8
@@
static void animscreen(void)
int yy = y + xy[i][1];
int tile_next;
int yy = y + xy[i][1];
int tile_next;
- if (xx < 0 || xx >= CAVE_WIDTH ||
- yy < 0 || yy >= CAVE_HEIGHT)
+ if (xx < 0 || xx >= CAVE_
BUFFER_
WIDTH ||
+ yy < 0 || yy >= CAVE_
BUFFER_
HEIGHT)
continue;
tile_next = lev.draw[xx][yy];
continue;
tile_next = lev.draw[xx][yy];