fixed bug with using game tile size scaling factor for door graphics
authorHolger Schemel <info@artsoft.org>
Wed, 14 Sep 2016 13:24:34 +0000 (15:24 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 14 Sep 2016 13:24:34 +0000 (15:24 +0200)
src/tools.c

index 08251c7827aab663227fff1aa2fc0a51e6a4abdf..959063c86983af576b0f154c7b7e023a10c7deea 100644 (file)
@@ -4460,7 +4460,8 @@ unsigned int MoveDoor(unsigned int door_state)
          int sync_frame = kk_door * door_delay_value;
          int frame = getGraphicAnimationFrame(dpc->graphic, sync_frame);
 
-         getGraphicSource(dpc->graphic, frame, &bitmap, &g_src_x, &g_src_y);
+         getFixedGraphicSource(dpc->graphic, frame, &bitmap,
+                               &g_src_x, &g_src_y);
        }
 
        // draw door panel