X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame.c;h=af0b7413103ef3c897535dbcdcc0af31be4e3d0e;hb=9cb181e05e485435ef48586dd4f2811ba1e672b3;hp=0b52048d657b6e2243a4ebb8bb2830e4fb2caef6;hpb=80e176e969192ac90d74ef83b4ab22dc0fe21b7a;p=rocksndiamonds.git diff --git a/src/game.c b/src/game.c index 0b52048d..af0b7413 100644 --- a/src/game.c +++ b/src/game.c @@ -10588,26 +10588,11 @@ void ScrollLevel(int dx, int dy) FX + TILEX * (dx != 0 ? i : 0), FY + TILEY * (dy != 0 ? i : 0)); } + #else int softscroll_offset = (setup.soft_scrolling ? TILEX : 0); -#if 1 - BlitBitmap(drawto_field, bitmap_db_field2, - FX + TILEX * (dx == -1) - softscroll_offset, - FY + TILEY * (dy == -1) - softscroll_offset, - SXSIZE - TILEX * (dx != 0) + 2 * softscroll_offset, - SYSIZE - TILEY * (dy != 0) + 2 * softscroll_offset, - FX + TILEX * (dx == 1) - softscroll_offset, - FY + TILEY * (dy == 1) - softscroll_offset); - BlitBitmap(bitmap_db_field2, drawto_field, - FX + TILEX * (dx == 1) - softscroll_offset, - FY + TILEY * (dy == 1) - softscroll_offset, - SXSIZE - TILEX * (dx != 0) + 2 * softscroll_offset, - SYSIZE - TILEY * (dy != 0) + 2 * softscroll_offset, - FX + TILEX * (dx == 1) - softscroll_offset, - FY + TILEY * (dy == 1) - softscroll_offset); -#else BlitBitmap(drawto_field, drawto_field, FX + TILEX * (dx == -1) - softscroll_offset, FY + TILEY * (dy == -1) - softscroll_offset, @@ -10615,7 +10600,6 @@ void ScrollLevel(int dx, int dy) SYSIZE - TILEY * (dy != 0) + 2 * softscroll_offset, FX + TILEX * (dx == 1) - softscroll_offset, FY + TILEY * (dy == 1) - softscroll_offset); -#endif #endif if (dx != 0)