From 5563d8cacbe65dab73d0979b8cf2e7f4f16c6de6 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Wed, 5 Feb 2020 00:12:34 +0100 Subject: [PATCH 1/1] moved global variables for graphic info to graphics code --- src/game_em/graphics.c | 4 ++++ src/game_em/tab_generate.c | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/game_em/graphics.c b/src/game_em/graphics.c index eed798b4..aab9ade2 100644 --- a/src/game_em/graphics.c +++ b/src/game_em/graphics.c @@ -42,6 +42,10 @@ int screen_x, screen_y; /* current scroll position */ static int screentiles[MAX_PLAYFIELD_WIDTH + 2][MAX_PLAYFIELD_HEIGHT + 2]; static int crumbled_state[MAX_PLAYFIELD_WIDTH + 2][MAX_PLAYFIELD_HEIGHT + 2]; +/* graphic info for game objects/frames and players/actions/frames */ +struct GraphicInfo_EM graphic_info_em_object[TILE_MAX][8]; +struct GraphicInfo_EM graphic_info_em_player[MAX_PLAYERS][PLY_MAX][8]; + int getFieldbufferOffsetX_EM(void) { return screen_x % TILEX; diff --git a/src/game_em/tab_generate.c b/src/game_em/tab_generate.c index f71aaffe..14683a09 100644 --- a/src/game_em/tab_generate.c +++ b/src/game_em/tab_generate.c @@ -215,12 +215,6 @@ unsigned short tab_explode_normal[TILE_MAX]; /* dynamite explosion */ unsigned short tab_explode_dynamite[TILE_MAX]; -/* map tiles and frames to graphic info */ -struct GraphicInfo_EM graphic_info_em_object[TILE_MAX][8]; - -/* map player number, frames and action to graphic info */ -struct GraphicInfo_EM graphic_info_em_player[MAX_PLAYERS][PLY_MAX][8]; - static void create_tab(int *invert, unsigned char *array) { int i; -- 2.34.1