summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-02-06 11:11:12 +0000
committerbjarni <bjarni@openttd.org>2007-02-06 11:11:12 +0000
commit80125fd934af1e79aa3223f9892d5754d3b4affa (patch)
treee35fe2197ef3aba9cb1b1902312f0f010202376b /src/vehicle.h
parent2918fab68d1a37c0a342dfae4a2bfa350facaf8b (diff)
downloadopenttd-80125fd934af1e79aa3223f9892d5754d3b4affa.tar.xz
(svn r8610) -Codechange/Feature: rewrote the list handling in the autoreplace window
-The user will notice the following changes: All vehicle types behaves in the same way Adding/removing an engine (new design and so on) can no longer result in the window selecting a new engine All valid replacements will be displayed since it looks at refitting options as well (this solves the missing ships with the newships GRF) Since you can't replace an engine into itself, the engine selected in the left list will no longer appear in the right list -The code changes: Instead of looping all engines all the time, each list generates a list like the build windows This ensures consistent list generation since only one function can loop all engines Unified code for all vehicle types It now use the lists to call the drawing code in the build vehicle window Works on selected EngineIDs instead of selected index in the list
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 780663725..f1500a663 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -341,6 +341,8 @@ int32 SendAllVehiclesToDepot(byte type, uint32 flags, bool service, PlayerID own
bool IsVehicleInDepot(const Vehicle *v);
void VehicleEnterDepot(Vehicle *v);
+void InvalidateAutoreplaceWindow(EngineID e);
+
/* Flags to add to p2 for goto depot commands */
/* Note: bits 8-10 are used for VLW flags */
enum {