summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-26 17:36:18 +0000
committerDarkvater <darkvater@openttd.org>2006-12-26 17:36:18 +0000
commit073e0eb3c9148d6dd8b2c9ce788843b8180351cb (patch)
tree8dae47833ded5c522ac7a89f69f10fc0c2530e90 /industry_gui.c
parent2e0bbe540383c96f4356dd75e70bb1fa5c8e95be (diff)
downloadopenttd-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 'industry_gui.c')
-rw-r--r--industry_gui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/industry_gui.c b/industry_gui.c
index 13fbac9cc..fa6d13198 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -563,8 +563,7 @@ static void MakeSortedIndustryList(void)
/* Create array for sorting */
_industry_sort = realloc((void *)_industry_sort, (GetMaxIndustryIndex() + 1) * sizeof(_industry_sort[0]));
- if (_industry_sort == NULL)
- error("Could not allocate memory for the industry-sorting-list");
+ if (_industry_sort == NULL) error("Could not allocate memory for the industry-sorting-list");
FOR_ALL_INDUSTRIES(i) _industry_sort[n++] = i;
@@ -573,7 +572,7 @@ static void MakeSortedIndustryList(void)
qsort((void*)_industry_sort, n, sizeof(_industry_sort[0]), GeneralIndustrySorter);
- DEBUG(misc, 1) ("Resorting Industries list...");
+ DEBUG(misc, 3, "Resorting industries list");
}