projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved cave arrays and pointers for EM engine to level structure
[rocksndiamonds.git]
/
src
/
game_em
/
graphics.c
diff --git
a/src/game_em/graphics.c
b/src/game_em/graphics.c
index 1ba8c511eed1263cfbfad8da728d3c2b898a985b..0f763382d5b333d2ae273c300e920df477a863f4 100644
(file)
--- a/
src/game_em/graphics.c
+++ b/
src/game_em/graphics.c
@@
-109,7
+109,7
@@
void BackToFront_EM(void)
static struct GraphicInfo_EM *getObjectGraphic(int x, int y)
{
static struct GraphicInfo_EM *getObjectGraphic(int x, int y)
{
- int tile =
D
raw[x][y];
+ int tile =
lev.d
raw[x][y];
struct GraphicInfo_EM *g = &graphic_info_em_object[tile][frame];
if (!game.use_native_emc_graphics_engine)
struct GraphicInfo_EM *g = &graphic_info_em_object[tile][frame];
if (!game.use_native_emc_graphics_engine)
@@
-302,8
+302,8
@@
static void animscreen(void)
if (!game.use_native_emc_graphics_engine)
for (y = 2; y < EM_MAX_CAVE_HEIGHT - 2; y++)
for (x = 2; x < EM_MAX_CAVE_WIDTH - 2; x++)
if (!game.use_native_emc_graphics_engine)
for (y = 2; y < EM_MAX_CAVE_HEIGHT - 2; y++)
for (x = 2; x < EM_MAX_CAVE_WIDTH - 2; x++)
- SetGfxAnimation_EM(&graphic_info_em_object[
D
raw[x][y]][frame],
-
D
raw[x][y], 7 - frame, x - 2, y - 2);
+ SetGfxAnimation_EM(&graphic_info_em_object[
lev.d
raw[x][y]][frame],
+
lev.d
raw[x][y], 7 - frame, x - 2, y - 2);
for (y = top; y < top + MAX_BUF_YSIZE; y++)
{
for (y = top; y < top + MAX_BUF_YSIZE; y++)
{
@@
-311,7
+311,7
@@
static void animscreen(void)
{
int sx = x % MAX_BUF_XSIZE;
int sy = y % MAX_BUF_YSIZE;
{
int sx = x % MAX_BUF_XSIZE;
int sy = y % MAX_BUF_YSIZE;
- int tile =
D
raw[x][y];
+ int tile =
lev.d
raw[x][y];
struct GraphicInfo_EM *g = &graphic_info_em_object[tile][frame];
int obj = g->unique_identifier;
int crm = 0;
struct GraphicInfo_EM *g = &graphic_info_em_object[tile][frame];
int obj = g->unique_identifier;
int crm = 0;
@@
-330,7
+330,7
@@
static void animscreen(void)
yy < 0 || yy >= EM_MAX_CAVE_HEIGHT)
continue;
yy < 0 || yy >= EM_MAX_CAVE_HEIGHT)
continue;
- tile_next =
D
raw[xx][yy];
+ tile_next =
lev.d
raw[xx][yy];
if (!graphic_info_em_object[tile_next][frame].has_crumbled_graphics)
crm |= (1 << i);
if (!graphic_info_em_object[tile_next][frame].has_crumbled_graphics)
crm |= (1 << i);