(svn r6782) - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click.
This commit is contained in:
		| @@ -1732,6 +1732,8 @@ int32 CmdReverseTrainDirection(TileIndex tile, uint32 flags, uint32 p1, uint32 p | |||||||
|  |  | ||||||
| 		if (flags & DC_EXEC) { | 		if (flags & DC_EXEC) { | ||||||
| 			TOGGLEBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION); | 			TOGGLEBIT(v->u.rail.flags, VRF_REVERSE_DIRECTION); | ||||||
|  | 			InvalidateWindow(WC_VEHICLE_DEPOT, v->tile); | ||||||
|  | 			InvalidateWindow(WC_VEHICLE_DETAILS, v->index); | ||||||
| 		} | 		} | ||||||
| 	} else { | 	} else { | ||||||
| 		//turn the whole train around | 		//turn the whole train around | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 peter1138
					peter1138