projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ed6e31
)
minor whitespace change
author
Holger Schemel
<info@artsoft.org>
Tue, 8 Dec 2015 14:24:32 +0000
(15:24 +0100)
committer
Holger Schemel
<info@artsoft.org>
Tue, 8 Dec 2015 14:24:32 +0000
(15:24 +0100)
src/tools.c
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index 3cf3b9609618d50b46346dba54d7bed7c7f32937..0e030f7bb9da94839d8983af84c264c11f42054e 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-1302,20
+1302,20
@@
inline static void DrawGraphicShiftedNormal(int x, int y, int dx, int dy,
width = -dx;
dx = TILEX + dx;
}
width = -dx;
dx = TILEX + dx;
}
- else if (x
==
BX1 && dx < 0) /* object leaves playfield to the left */
+ else if (x
==
BX1 && dx < 0) /* object leaves playfield to the left */
{
width += dx;
cx = -dx;
dx = 0;
}
{
width += dx;
cx = -dx;
dx = 0;
}
- else if (x
==
BX2 && dx > 0) /* object leaves playfield to the right */
+ else if (x
==
BX2 && dx > 0) /* object leaves playfield to the right */
width -= dx;
else if (dx) /* general horizontal movement */
MarkTileDirty(x + SIGN(dx), y);
if (y < BY1) /* object enters playfield from the top */
{
width -= dx;
else if (dx) /* general horizontal movement */
MarkTileDirty(x + SIGN(dx), y);
if (y < BY1) /* object enters playfield from the top */
{
- if (cut_mode
==
CUT_BELOW) /* object completely above top border */
+ if (cut_mode
==
CUT_BELOW) /* object completely above top border */
return;
y = BY1;
return;
y = BY1;
@@
-1329,7
+1329,7
@@
inline static void DrawGraphicShiftedNormal(int x, int y, int dx, int dy,
height = -dy;
dy = TILEY + dy;
}
height = -dy;
dy = TILEY + dy;
}
- else if (y
==
BY1 && dy < 0) /* object leaves playfield to the top */
+ else if (y
==
BY1 && dy < 0) /* object leaves playfield to the top */
{
height += dy;
cy = -dy;
{
height += dy;
cy = -dy;