fixed scanning laser using element masks for Mirror Magic game engine
authorHolger Schemel <info@artsoft.org>
Mon, 20 Feb 2017 20:12:00 +0000 (21:12 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:08 +0000 (23:21 +0100)
src/game_mm/mm_game.c

index b88499a552473031cd8d459dfac73dffbef9384e..7310c0e1bde0fcedbd45e81f67c5cdc64c559702 100644 (file)
@@ -533,8 +533,8 @@ int ScanPixel()
        {
          int graphic_mask = getMaskFromElement(element);
          int mask_x, mask_y;
-         int dx = px - lx * TILEX;
-         int dy = py - ly * TILEY;
+         int dx = px - SX - lx * TILEX;
+         int dy = py - SY - ly * TILEY;
          Bitmap *bitmap;
          int src_x, src_y;