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 /town_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 'town_gui.c')
-rw-r--r-- | town_gui.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/town_gui.c b/town_gui.c index 1434edcdd..896e7cffd 100644 --- a/town_gui.c +++ b/town_gui.c @@ -410,8 +410,7 @@ static void MakeSortedTownList(void) /* Create array for sorting */ _town_sort = realloc((void*)_town_sort, (GetMaxTownIndex() + 1) * sizeof(_town_sort[0])); - if (_town_sort == NULL) - error("Could not allocate memory for the town-sorting-list"); + if (_town_sort == NULL) error("Could not allocate memory for the town-sorting-list"); FOR_ALL_TOWNS(t) _town_sort[n++] = t; @@ -420,7 +419,7 @@ static void MakeSortedTownList(void) _last_town = NULL; // used for "cache" qsort((void*)_town_sort, n, sizeof(_town_sort[0]), _town_sort_order & 2 ? TownPopSorter : TownNameSorter); - DEBUG(misc, 1) ("Resorting Towns list..."); + DEBUG(misc, 3, "Resorting towns list"); } |