projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added optional button to restart game (door, panel and touch variants)
[rocksndiamonds.git]
/
src
/
game_sp
/
DDScrollBuffer.c
diff --git
a/src/game_sp/DDScrollBuffer.c
b/src/game_sp/DDScrollBuffer.c
index 0db7e7fd2af75a00ef34dbc429e676d1c6395c92..6976f939b875f2fda62338796de4e22e17c3ef5a 100644
(file)
--- a/
src/game_sp/DDScrollBuffer.c
+++ b/
src/game_sp/DDScrollBuffer.c
@@
-185,7
+185,7
@@
void UpdatePlayfield(boolean force_redraw)
{
int element = LowByte(PlayField16[GetSI(x, y)]);
int graphic = GfxGraphic[x][y];
{
int element = LowByte(PlayField16[GetSI(x, y)]);
int graphic = GfxGraphic[x][y];
- int sync_frame = GfxFrame[x][y];
+ int sync_frame = GfxFrame
SP
[x][y];
boolean redraw = force_redraw;
if (graphic < 0)
boolean redraw = force_redraw;
if (graphic < 0)
@@
-212,7
+212,7
@@
void UpdatePlayfield(boolean force_redraw)
GfxElementLast[x][y] = element;
GfxGraphicLast[x][y] = GfxGraphic[x][y];
GfxElementLast[x][y] = element;
GfxGraphicLast[x][y] = GfxGraphic[x][y];
- sync_frame = GfxFrame[x][y] = 0;
+ sync_frame = GfxFrame
SP
[x][y] = 0;
}
else if (isNextAnimationFrame_SP(graphic, sync_frame)) // new frame
{
}
else if (isNextAnimationFrame_SP(graphic, sync_frame)) // new frame
{
@@
-234,7
+234,7
@@
void UpdatePlayfield(boolean force_redraw)
}
#if DEBUG_REDRAW
}
#if DEBUG_REDRAW
-
printf("::: FRAME %d: %d redrawn\
n", FrameCounter, num_redrawn);
+
Debug("game:playing:SP", "FRAME %d: %d redraw
n", FrameCounter, num_redrawn);
#endif
}
#endif
}