moved global variables for graphic info to graphics code
authorHolger Schemel <info@artsoft.org>
Tue, 4 Feb 2020 23:12:34 +0000 (00:12 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 19 May 2020 16:12:59 +0000 (18:12 +0200)
src/game_em/graphics.c
src/game_em/tab_generate.c

index eed798b4943397ccd2470140d094472911677ab9..aab9ade2a36c6157c49fa4abd0c73c3ecccf5468 100644 (file)
@@ -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;
index f71aaffe213a1f8b7a2b3573af1ca79fc288cb23..14683a099dc6ab30238befbcefa34d433d3f3030 100644 (file)
@@ -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;