From: Holger Schemel Date: Thu, 4 Feb 1999 01:03:10 +0000 (+0100) Subject: rnd-19990204-1 X-Git-Tag: 1.3.0^2~3 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=ee056f1ea7a5c8d4fbfbed6ca08bd140b06381ec;p=rocksndiamonds.git rnd-19990204-1 --- diff --git a/src/game.c b/src/game.c index f51b2dc4..fada15db 100644 --- a/src/game.c +++ b/src/game.c @@ -560,10 +560,10 @@ void InitGame() SBY_Lower = lev_fieldy - SCR_FIELDY + 1; } - if (lev_fieldx < SCR_FIELDX) + if (lev_fieldx + (SBX_Left == -1 ? 2 : 0) <= SCR_FIELDX) SBX_Left = SBX_Right = -1 * (SCR_FIELDX - lev_fieldx) / 2; - if (lev_fieldy < SCR_FIELDY) + if (lev_fieldy + (SBY_Upper == -1 ? 2 : 0) <= SCR_FIELDY) SBY_Upper = SBY_Lower = -1 * (SCR_FIELDY - lev_fieldy) / 2; scroll_x = SBX_Left;