replaced variables
[rocksndiamonds.git] / src / game_mm / mm_game.c
index ea6faa9527b662366f5dc027f776f994729d3a43..c89a900830fa5f97adcf6228d5bd3982645a6e9c 100644 (file)
@@ -847,11 +847,11 @@ static void GameOver_MM(int game_over_cause)
 
 static void AddLaserEdge(int lx, int ly)
 {
-  int sxsize = MAX(SXSIZE, lev_fieldx * TILEX);
-  int sysize = MAX(SYSIZE, lev_fieldy * TILEY);
+  int full_sxsize = MAX(FULL_SXSIZE, lev_fieldx * TILEX);
+  int full_sysize = MAX(FULL_SYSIZE, lev_fieldy * TILEY);
 
-  if (dSX + lx < -2 || dSX + lx >= sxsize + 2 ||
-      dSY + ly < -2 || dSY + ly >= sysize + 2)
+  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);