changeset 4763:bf6701f610e9 draft

(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
author bjarni <bjarni@openttd.org>
date Sat, 07 Oct 2006 08:39:34 +0000
parents 3c6ce5455700
children cde8916b0f0f
files depot_gui.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/depot_gui.c
+++ b/depot_gui.c
@@ -645,7 +645,9 @@
 					&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