projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added options "game.forced_scroll_x" and "game.forced_scroll_y"
[rocksndiamonds.git]
/
src
/
game.c
diff --git
a/src/game.c
b/src/game.c
index 53410d5ace4c808511e21dad4c6e2e8cf04e6ada..88fa0a6e3e19a3d80126795e35459f6d0f3d167e 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-4445,6
+4445,11
@@
void InitGame(void)
scroll_y = SCROLL_POSITION_Y(local_player->jy);
}
scroll_y = SCROLL_POSITION_Y(local_player->jy);
}
+ if (game.forced_scroll_x != ARG_UNDEFINED_VALUE)
+ scroll_x = game.forced_scroll_x;
+ if (game.forced_scroll_y != ARG_UNDEFINED_VALUE)
+ scroll_y = game.forced_scroll_y;
+
// !!! FIX THIS (START) !!!
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
{
// !!! FIX THIS (START) !!!
if (level.game_engine_type == GAME_ENGINE_TYPE_EM)
{