(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
This commit is contained in:
bjarni 2006-10-07 08:39:34 +00:00
parent b4974b9d7d
commit f640eb7302
1 changed files with 3 additions and 1 deletions

View File

@ -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