projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed compiler warnings (after adding "-Wstrict-prototypes")
[rocksndiamonds.git]
/
src
/
game_sp
/
DDScrollBuffer.c
diff --git
a/src/game_sp/DDScrollBuffer.c
b/src/game_sp/DDScrollBuffer.c
index f580d3991dc1e5273f32eb49bfb3f99b406b6a60..62257d0314c403d026e83152cec72c5999d31e95 100644
(file)
--- a/
src/game_sp/DDScrollBuffer.c
+++ b/
src/game_sp/DDScrollBuffer.c
@@
-13,7
+13,7
@@
int mScrollX_last, mScrollY_last;
int ScreenBuffer[2 + MAX_PLAYFIELD_WIDTH + 2][2 + MAX_PLAYFIELD_HEIGHT + 2];
int ScreenBuffer[2 + MAX_PLAYFIELD_WIDTH + 2][2 + MAX_PLAYFIELD_HEIGHT + 2];
-int getFieldbufferOffsetX_SP()
+int getFieldbufferOffsetX_SP(
void
)
{
int px = 2 * TILEX + (mScrollX - mScrollX_last) % TILEX;
{
int px = 2 * TILEX + (mScrollX - mScrollX_last) % TILEX;
@@
-28,7
+28,7
@@
int getFieldbufferOffsetX_SP()
return px;
}
return px;
}
-int getFieldbufferOffsetY_SP()
+int getFieldbufferOffsetY_SP(
void
)
{
int py = 2 * TILEY + (mScrollY - mScrollY_last) % TILEY;
{
int py = 2 * TILEY + (mScrollY - mScrollY_last) % TILEY;
@@
-43,7
+43,7
@@
int getFieldbufferOffsetY_SP()
return py;
}
return py;
}
-void RestorePlayfield()
+void RestorePlayfield(
void
)
{
int x1 = mScrollX / TILEX - 2;
int y1 = mScrollY / TILEY - 2;
{
int x1 = mScrollX / TILEX - 2;
int y1 = mScrollY / TILEY - 2;
@@
-148,12
+148,12
@@
static void ScrollPlayfieldIfNeededExt(boolean reset)
}
}
}
}
-static void ScrollPlayfieldIfNeeded()
+static void ScrollPlayfieldIfNeeded(
void
)
{
ScrollPlayfieldIfNeededExt(FALSE);
}
{
ScrollPlayfieldIfNeededExt(FALSE);
}
-void InitScrollPlayfield()
+void InitScrollPlayfield(
void
)
{
ScrollPlayfieldIfNeededExt(TRUE);
}
{
ScrollPlayfieldIfNeededExt(TRUE);
}