From: Holger Schemel Date: Fri, 7 Apr 2023 10:39:24 +0000 (+0200) Subject: removed variables X-Git-Tag: 4.3.6.0~44 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9b9fc7c5d5990aae8f7c1b403c3ab1ed338018da;p=rocksndiamonds.git removed variables --- diff --git a/src/game_mm/mm_game.c b/src/game_mm/mm_game.c index b0743369..ea6faa95 100644 --- a/src/game_mm/mm_game.c +++ b/src/game_mm/mm_game.c @@ -847,12 +847,11 @@ static void GameOver_MM(int game_over_cause) static void AddLaserEdge(int lx, int ly) { - int clx = dSX + lx; - int cly = dSY + ly; int sxsize = MAX(SXSIZE, lev_fieldx * TILEX); int sysize = MAX(SYSIZE, lev_fieldy * TILEY); - if (clx < -2 || cly < -2 || clx >= sxsize + 2 || cly >= sysize + 2) + if (dSX + lx < -2 || dSX + lx >= sxsize + 2 || + dSY + ly < -2 || dSY + ly >= sysize + 2) { Warn("AddLaserEdge: out of bounds: %d, %d", lx, ly);