projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35cd12
)
removed variables
author
Holger Schemel
<info@artsoft.org>
Fri, 7 Apr 2023 10:39:24 +0000
(12:39 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 7 Apr 2023 10:39:33 +0000
(12:39 +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 b0743369f8acf99bff6ce4a9600e33ed88e1510d..ea6faa9527b662366f5dc027f776f994729d3a43 100644
(file)
--- 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);