From: Holger Schemel Date: Fri, 7 Apr 2023 10:49:13 +0000 (+0200) Subject: replaced variables X-Git-Tag: 4.3.6.0~42 X-Git-Url: https://git.artsoft.org/rocksndiamonds.git/?a=commitdiff_plain;h=ad6c6f3b18cab93a4e4ce5a9dc7e462cef9ce405;p=rocksndiamonds.git replaced variables --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index 49200caa..c89a9008 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -850,8 +850,8 @@ static void AddLaserEdge(int lx, int ly) int full_sxsize = MAX(FULL_SXSIZE, lev_fieldx * TILEX); int full_sysize = MAX(FULL_SYSIZE, lev_fieldy * TILEY); - if (SX + dSX + lx < REAL_SX || SX + dSX + lx >= REAL_SX + full_sxsize || - SY + dSY + ly < REAL_SY || SY + dSY + ly >= REAL_SY + full_sysize) + if (cSX + lx < REAL_SX || cSX + lx >= REAL_SX + full_sxsize || + cSY + ly < REAL_SY || cSY + ly >= REAL_SY + full_sysize) { Warn("AddLaserEdge: out of bounds: %d, %d", lx, ly);