From: Holger Schemel Date: Tue, 4 Feb 2020 22:22:48 +0000 (+0100) Subject: removed unused bitmaps from EM engine X-Git-Tag: 4.2.0.0~149 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d96f981640e9eca6c5cc3e14011cacc5ae24b386;p=rocksndiamonds.git removed unused bitmaps from EM engine --- diff --git a/src/game_em/init.c b/src/game_em/init.c index fc84fbf3..8876c952 100644 --- a/src/game_em/init.c +++ b/src/game_em/init.c @@ -8,9 +8,6 @@ #include -Bitmap *objBitmap; -Bitmap *sprBitmap; - Bitmap *screenBitmap; struct GlobalInfo_EM global_em_info; @@ -18,9 +15,6 @@ struct GameInfo_EM game_em; int open_all(void) { - objBitmap = NULL; - sprBitmap = NULL; - return 0; } diff --git a/src/game_em/main_em.h b/src/game_em/main_em.h index 0620b725..efc59eb1 100644 --- a/src/game_em/main_em.h +++ b/src/game_em/main_em.h @@ -108,12 +108,6 @@ extern unsigned short map_ply[2][8][PLY_MAX]; extern unsigned short map_ttl[128]; extern Bitmap *screenBitmap; -extern Bitmap *scoreBitmap; - -extern Bitmap *objBitmap; -extern Bitmap *sprBitmap; -extern Bitmap *ttlBitmap; -extern Bitmap *botBitmap; // ---------------------------------------------------------------------------- diff --git a/src/game_em/tab_generate.c b/src/game_em/tab_generate.c index 2d7c1148..c54d1f6f 100644 --- a/src/game_em/tab_generate.c +++ b/src/game_em/tab_generate.c @@ -4535,7 +4535,7 @@ static void create_obj_graphics_info_em(void) struct GraphicInfo_EM *g = &graphic_info_em_object[i][j]; int obj = map_obj[j][i]; - g->bitmap = objBitmap; + g->bitmap = NULL; g->src_x = (obj / 512) * TILEX; g->src_y = (obj % 512) * TILEY / 16; g->src_offset_x = 0; @@ -4594,7 +4594,7 @@ static void create_ply_graphics_info_em(void) struct GraphicInfo_EM *g = &graphic_info_em_player[i][j][k]; int spr = map_ply[i % 2][k][j]; - g->bitmap = sprBitmap; + g->bitmap = NULL; g->src_x = (spr / 8) * TILEX; g->src_y = (spr % 8) * TILEY; g->src_offset_x = 0;