From: Holger Schemel Date: Mon, 11 Feb 2019 19:46:41 +0000 (+0100) Subject: minor whitespace change X-Git-Tag: 4.1.2.0~18 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8a5247c6a6ee1936c6fbd02e22731411c2d5051a;p=rocksndiamonds.git minor whitespace change --- diff --git a/src/game.c b/src/game.c index 30ebdd17..9b910311 100644 --- a/src/game.c +++ b/src/game.c @@ -11994,7 +11994,7 @@ void GameActions_RND(void) element == EL_DC_MAGIC_WALL_FULL || element == EL_DC_MAGIC_WALL_ACTIVE || element == EL_DC_MAGIC_WALL_EMPTYING) && - ABS(x-jx) + ABS(y-jy) < ABS(magic_wall_x-jx) + ABS(magic_wall_y-jy)) + ABS(x - jx) + ABS(y - jy) < ABS(magic_wall_x - jx) + ABS(magic_wall_y - jy)) { magic_wall_x = x; magic_wall_y = y; @@ -12528,7 +12528,7 @@ boolean MovePlayer(struct PlayerInfo *player, int dx, int dy) { if ((player->MovDir == MV_LEFT && scroll_x > jx - MIDPOSX + offset) || (player->MovDir == MV_RIGHT && scroll_x < jx - MIDPOSX - offset)) - scroll_x = jx-MIDPOSX + (scroll_x < jx-MIDPOSX ? -offset : +offset); + scroll_x = jx - MIDPOSX + (scroll_x < jx - MIDPOSX ? -offset : +offset); // don't scroll over playfield boundaries if (scroll_x < SBX_Left || scroll_x > SBX_Right) @@ -12546,7 +12546,7 @@ boolean MovePlayer(struct PlayerInfo *player, int dx, int dy) { if ((player->MovDir == MV_UP && scroll_y > jy - MIDPOSY + offset) || (player->MovDir == MV_DOWN && scroll_y < jy - MIDPOSY - offset)) - scroll_y = jy-MIDPOSY + (scroll_y < jy-MIDPOSY ? -offset : +offset); + scroll_y = jy - MIDPOSY + (scroll_y < jy - MIDPOSY ? -offset : +offset); // don't scroll over playfield boundaries if (scroll_y < SBY_Upper || scroll_y > SBY_Lower)