(svn r6677) -Codechange r6651: [depot window] disabled the check for the correct cache in the depot window
authorbjarni
Sat, 07 Oct 2006 08:39:34 +0000
changeset 4763 c74b3eac2b73
parent 4762 771ccf746531
child 4764 79341214c15d
(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
depot_gui.c
--- a/depot_gui.c	Sat Oct 07 08:24:11 2006 +0000
+++ b/depot_gui.c	Sat Oct 07 08:39:34 2006 +0000
@@ -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