summaryrefslogtreecommitdiff
path: root/depot_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-10-07 08:39:34 +0000
committerbjarni <bjarni@openttd.org>2006-10-07 08:39:34 +0000
commitf640eb7302fa0108916928bf8955d50b1c2ede45 (patch)
treedefc8d443f74c3afab4f50f3ff1c46c970203a3a /depot_gui.c
parentb4974b9d7de81eff1516b70781d16249357b1020 (diff)
downloadopenttd-f640eb7302fa0108916928bf8955d50b1c2ede45.tar.xz
(svn r6677) -Codechange r6651: [depot window] disabled the check for the correct cache in the depot window
Nobody had problems so far, so we can assume that InvalidateWindowData() is used everywhere where it's needed The check is just disabled, not deleted so it's quick to reenable if we change some code and wants to check this again
Diffstat (limited to 'depot_gui.c')
-rw-r--r--depot_gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/depot_gui.c b/depot_gui.c
index b8bff252c..c60602c02 100644
--- a/depot_gui.c
+++ b/depot_gui.c
@@ -645,7 +645,9 @@ static void DepotWndProc(Window *w, WindowEvent *e)
&WP(w, depot_d).wagon_list, &WP(w, depot_d).wagon_list_length, &WP(w, depot_d).wagon_count);
WP(w, depot_d).generate_list = false;
DepotSortList(WP(w, depot_d).vehicle_list, WP(w, depot_d).engine_count);
-#ifndef NDEBUG
+//#ifndef NDEBUG
+#if 0
+/* We disabled this check for now, but will keep it to quickly make this test again later (if we change some code) */
} else {
/* Here we got a piece of code, that only checks if we got a different number of vehicles in the depot list and the number of vehicles actually being in the depot.
* IF they aren't the same, then WE_INVALIDATE_DATA should have been called somewhere, but it wasn't and we got a bug