diff options
author | Darkvater <darkvater@openttd.org> | 2006-12-26 17:36:18 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-12-26 17:36:18 +0000 |
commit | 073e0eb3c9148d6dd8b2c9ce788843b8180351cb (patch) | |
tree | 8dae47833ded5c522ac7a89f69f10fc0c2530e90 /graph_gui.c | |
parent | 2e0bbe540383c96f4356dd75e70bb1fa5c8e95be (diff) | |
download | openttd-073e0eb3c9148d6dd8b2c9ce788843b8180351cb.tar.xz |
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
Diffstat (limited to 'graph_gui.c')
-rw-r--r-- | graph_gui.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/graph_gui.c b/graph_gui.c index 50eb932d9..c6a9b845b 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -1152,9 +1152,7 @@ static void GlobalSortSignList(void) /* Create array for sorting */ _sign_sort = realloc((void *)_sign_sort, (GetMaxSignIndex() + 1)* sizeof(_sign_sort[0])); - if (_sign_sort == NULL) { - error("Could not allocate memory for the sign-sorting-list"); - } + if (_sign_sort == NULL) error("Could not allocate memory for the sign-sorting-list"); FOR_ALL_SIGNS(si) _sign_sort[n++] = si; _num_sign_sort = n; @@ -1163,7 +1161,7 @@ static void GlobalSortSignList(void) _sign_sort_dirty = false; - DEBUG(misc, 1) ("Resorting global sign list..."); + DEBUG(misc, 3, "Resorting global signs list"); } static void SignListWndProc(Window *w, WindowEvent *e) |