projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bedda26
)
fixed scanning laser using element masks for Mirror Magic game engine
author
Holger Schemel
<info@artsoft.org>
Mon, 20 Feb 2017 20:12:00 +0000
(21:12 +0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:08 +0000
(23:21 +0100)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index b88499a552473031cd8d459dfac73dffbef9384e..7310c0e1bde0fcedbd45e81f67c5cdc64c559702 100644
(file)
--- 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;