projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed warnings and debug output to use new generic logging functions
[rocksndiamonds.git]
/
src
/
game_mm
/
mm_game.c
diff --git
a/src/game_mm/mm_game.c
b/src/game_mm/mm_game.c
index 30db46075787e471b2f22108042a01c0ca33b894..e3437a7c64cd88faa0f8eaca3b2c39f47ba58ee8 100644
(file)
--- a/
src/game_mm/mm_game.c
+++ b/
src/game_mm/mm_game.c
@@
-717,7
+717,7
@@
void AddLaserEdge(int lx, int ly)
if (clx < -2 || cly < -2 || clx >= SXSIZE + 2 || cly >= SYSIZE + 2)
{
if (clx < -2 || cly < -2 || clx >= SXSIZE + 2 || cly >= SYSIZE + 2)
{
-
Error(ERR_WARN,
"AddLaserEdge: out of bounds: %d, %d", lx, ly);
+
Warn(
"AddLaserEdge: out of bounds: %d, %d", lx, ly);
return;
}
return;
}
@@
-1042,14
+1042,14
@@
static void DrawLaserExt(int start_edge, int num_edges, int mode)
if (start_edge < 0)
{
if (start_edge < 0)
{
-
Error(ERR_WARN,
"DrawLaserExt: start_edge < 0");
+
Warn(
"DrawLaserExt: start_edge < 0");
return;
}
if (num_edges < 0)
{
return;
}
if (num_edges < 0)
{
-
Error(ERR_WARN,
"DrawLaserExt: num_edges < 0");
+
Warn(
"DrawLaserExt: num_edges < 0");
return;
}
return;
}
@@
-1224,7
+1224,7
@@
void DrawLaser(int start_edge, int mode)
{
if (laser.num_edges - start_edge < 0)
{
{
if (laser.num_edges - start_edge < 0)
{
-
Error(ERR_WARN,
"DrawLaser: laser.num_edges - start_edge < 0");
+
Warn(
"DrawLaser: laser.num_edges - start_edge < 0");
return;
}
return;
}
@@
-2879,7
+2879,8
@@
void RotateMirror(int x, int y, int button)
if (edge == 0)
{
if (edge == 0)
{
- Error(ERR_WARN, "RotateMirror: inconsistent field Hit[][]!\n");
+ Warn("RotateMirror: inconsistent field Hit[][]!\n");
+
edge = 1;
}
edge = 1;
}