Changeset - r1842:b277f7aa17ea
[Not reviewed]
master
0 1 0
Darkvater - 20 years ago 2005-05-17 23:08:21
darkvater@openttd.org
(svn r2347) - Fix (regression): depot window did not get redrawn when a non-train-engine was sold.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -932,9 +932,11 @@ int32 CmdSellRailWagon(int x, int y, uin
 
	// make sure the vehicle is stopped in the depot
 
	if (CheckTrainStoppedInDepot(first) < 0) return CMD_ERROR;
 

	
 
	if ((flags & DC_EXEC) && v == first && first->subtype == TS_Front_Engine) {
 
	if (flags & DC_EXEC) {
 
		if (v == first && first->subtype == TS_Front_Engine) {
 
		DeleteWindowById(WC_VEHICLE_VIEW, first->index);
 
		InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train);
 
		}
 
		InvalidateWindow(WC_VEHICLE_DEPOT, first->tile);
 
		RebuildVehicleLists();
 
	}
0 comments (0 inline, 0 general)