projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19980810
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index 7ffa3c19226725869b5eebfe3883402bd4bd220d..2bbf09019da7a375d0d175bd7bc6e203b7c14e83 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-258,6
+258,9
@@
void DrawPlayerField()
{
int x = JX, y = JY;
int sx = SCROLLX(x), sy = SCROLLY(y);
{
int x = JX, y = JY;
int sx = SCROLLX(x), sy = SCROLLY(y);
+
+ int sxx = 0, syy = 0;
+
int element = Feld[x][y];
int graphic, phase;
BOOL draw_thru_mask = FALSE;
int element = Feld[x][y];
int graphic, phase;
BOOL draw_thru_mask = FALSE;
@@
-306,10
+309,24
@@
void DrawPlayerField()
graphic += PlayerFrame;
graphic += PlayerFrame;
+
+ if (PlayerMovPos)
+ {
+ if (PlayerMovDir == MV_LEFT || PlayerMovDir == MV_RIGHT)
+ sxx = PlayerMovPos;
+ else
+ syy = PlayerMovPos;
+ }
+
+
if (draw_thru_mask)
if (draw_thru_mask)
- DrawGraphicThruMask(sx
,s
y, graphic);
+ DrawGraphicThruMask(sx
+ sxx, sy + sy
y, graphic);
else
else
- DrawGraphic(sx,sy, graphic);
+ DrawGraphicShifted(sx,sy,sxx,syy,graphic,CUT_NO_CUTTING);
+ /*
+ DrawGraphic(sx + sxx, sy + syy, graphic);
+ */
+
/* draw things in front of player (EL_DYNAMIT || EL_DYNABOMB) */
/* draw things in front of player (EL_DYNAMIT || EL_DYNABOMB) */