(svn r6714) -Codechange: replaced a direct manipulation of windows with InvalidateWindowData() in rail_cmd.c
Moved the actual modification of railtype to WE_INVALIDATE_DATA in the train depot handler -Codechange: added SetWindowDirty() to WE_INVALIDATE_DATA as it made no sense to update the list without making the window dirty
This commit is contained in:
@@ -546,7 +546,9 @@ static void NewRailVehicleWndProc(Window *w, WindowEvent *e)
|
||||
break;
|
||||
|
||||
case WE_INVALIDATE_DATA:
|
||||
if (w->window_number != 0) WP(w,buildvehicle_d).railtype = GetRailType(w->window_number);
|
||||
WP(w,buildvehicle_d).data_invalidated = true;
|
||||
SetWindowDirty(w);
|
||||
break;
|
||||
|
||||
case WE_DESTROY:
|
||||
|
||||
Reference in New Issue
Block a user