From: Holger Schemel Date: Sun, 9 Apr 2017 11:07:08 +0000 (+0200) Subject: removed code to create pre-calculated element mask array (MM engine) X-Git-Tag: 4.1.0.0~129 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=91c69482bdfa0096eda9f1788495efe9ffcbf515;p=rocksndiamonds.git removed code to create pre-calculated element mask array (MM engine) --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 84242f0b..195407d9 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -88,54 +88,7 @@ static void ContinueMoving_MM(int, int); static void Moving2Blocked_MM(int, int, int *, int *); -#if 0 -// ============================================================================= -// TMP_dump_masks_MM (code) -// ============================================================================= - -void TMP_dump_masks_MM() -{ - int i; - - printf("static const char mm_masks[10][16][16] =\n"); - printf("{\n"); - - for (i = EL_MM_MASK_MCDUFFIN_RIGHT; i <= EL_MM_MASK_CIRCLE; i++) - { - int graphic_mask = el2gfx(i); - Bitmap *bitmap; - int src_x, src_y; - int x, y; - - getGraphicSource(graphic_mask, 0, &bitmap, &src_x, &src_y); - - printf(" {\n"); - - for (y = 0; y < TILEY; y += 2) - { - printf(" \""); - - for (x = 0; x < TILEX; x += 2) - { - Pixel pixel = GetPixel(bitmap, src_x + x, src_y + y); - - printf("%c", (pixel ? 'X' : ' ')); - } - - printf("\",\n"); - } - - printf(" },\n"); - } - - printf("};\n"); -} -#endif - -// ============================================================================= -// TMP_dump_masks_MM (result) -// ============================================================================= - +/* element masks for scanning pixels of MM elements */ static const char mm_masks[10][16][16 + 1] = { { @@ -522,10 +475,6 @@ void InitGameEngine_MM() { int i, x, y; -#if 0 - TMP_dump_masks_MM(); -#endif - /* set global game control values */ game_mm.num_cycle = 0; game_mm.num_pacman = 0;