projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added multi-part line debug logging functions
[rocksndiamonds.git]
/
src
/
tools.c
diff --git
a/src/tools.c
b/src/tools.c
index b3eacd95c820c533847ab7fc21e61b45ed01d7c1..2c30df83c7fcdfcadf99faf69565b9e00cd0cb28 100644
(file)
--- a/
src/tools.c
+++ b/
src/tools.c
@@
-1468,7
+1468,7
@@
void FloodFillLevelExt(int from_x, int from_y, int fill_element,
safety++;
if (safety > max_fieldx * max_fieldy)
safety++;
if (safety > max_fieldx * max_fieldy)
-
Error(ERR_EXIT,
"Something went wrong in 'FloodFill()'. Please debug.");
+
Fail(
"Something went wrong in 'FloodFill()'. Please debug.");
old_element = field[from_x][from_y];
field[from_x][from_y] = fill_element;
old_element = field[from_x][from_y];
field[from_x][from_y] = fill_element;
@@
-5680,7
+5680,7
@@
void CreateToolButtons(void)
GDI_END);
if (gi == NULL)
GDI_END);
if (gi == NULL)
-
Error(ERR_EXIT,
"cannot create gadget");
+
Fail(
"cannot create gadget");
tool_gadget[id] = gi;
}
tool_gadget[id] = gi;
}