projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8babd60
)
replaced variables
author
Holger Schemel
<info@artsoft.org>
Fri, 7 Apr 2023 10:49:13 +0000
(12:49 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 7 Apr 2023 10:49:13 +0000
(12:49 +0200)
src/game_mm/mm_game.c
patch
|
blob
|
history
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 49200caade5d438a5e50782e2a5517d9fa9fe5c2..c89a900830fa5f97adcf6228d5bd3982645a6e9c 100644
(file)
--- 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 + d
SX + lx >= REAL_SX + full_sxsize ||
-
SY + dSY + ly < REAL_SY || SY + d
SY + ly >= REAL_SY + full_sysize)
+ if (
cSX + lx < REAL_SX || c
SX + lx >= REAL_SX + full_sxsize ||
+
cSY + ly < REAL_SY || c
SY + ly >= REAL_SY + full_sysize)
{
Warn("AddLaserEdge: out of bounds: %d, %d", lx, ly);