From: Holger Schemel Date: Mon, 20 Feb 2017 20:12:00 +0000 (+0100) Subject: fixed scanning laser using element masks for Mirror Magic game engine X-Git-Tag: 4.1.0.0~201 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=3dbea1a1b4dbdb991483ffe6bc9ca6954e199073 fixed scanning laser using element masks for Mirror Magic game engine --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index b88499a5..7310c0e1 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -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;