projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19980907
[rocksndiamonds.git]
/
src
/
cartoons.c
diff --git
a/src/cartoons.c
b/src/cartoons.c
index 1c193f6f689ae3b334210ee8ed3c04b27530df27..2edb0e4e942932d859ffc02e106e8146f4ad37ca 100644
(file)
--- a/
src/cartoons.c
+++ b/
src/cartoons.c
@@
-140,9
+140,16
@@
void HandleAnimation(int mode)
}
if (soft_scrolling_on && game_status==PLAYING)
}
if (soft_scrolling_on && game_status==PLAYING)
+ {
+ int fx = FX, fy = FY;
+
+ fx += (PlayerMovDir & (MV_LEFT|MV_RIGHT) ? ScreenMovPos : 0);
+ fy += (PlayerMovDir & (MV_UP|MV_DOWN) ? ScreenMovPos : 0);
+
XCopyArea(display,fieldbuffer,backbuffer,gc,
XCopyArea(display,fieldbuffer,backbuffer,gc,
-
FX,FY
, SXSIZE,SYSIZE,
+
fx,fy
, SXSIZE,SYSIZE,
SX,SY);
SX,SY);
+ }
return;
break;
return;
break;