diff options
author | bjarni <bjarni@openttd.org> | 2006-09-26 16:47:51 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-26 16:47:51 +0000 |
commit | f7769e885e1a928018a9be33553a887cb00babf7 (patch) | |
tree | 381d620a928fbc6c40266c4078ae71959a878f36 /depot.h | |
parent | 65a3777a403f1c3eb0f2856bf0b0073b4c83fad9 (diff) | |
download | openttd-f7769e885e1a928018a9be33553a887cb00babf7.tar.xz |
(svn r6513) -Codechange: unified the code to draw depot windows
This change is intended to make it easier to make depot behaviour consistent
and faster to code when adding more features in the future
The user interface should hopefully not be affected by this
Diffstat (limited to 'depot.h')
-rw-r--r-- | depot.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -56,6 +56,8 @@ static inline void DeleteDepot(Depot *depot) depot->xy = 0; } +void ShowDepotWindow(TileIndex tile, byte type); + #define FOR_ALL_DEPOTS_FROM(d, start) for (d = GetDepot(start); d != NULL; d = (d->index + 1 < GetDepotPoolSize()) ? GetDepot(d->index + 1) : NULL) if (IsValidDepot(d)) #define FOR_ALL_DEPOTS(d) FOR_ALL_DEPOTS_FROM(d, 0) |