summaryrefslogtreecommitdiff
path: root/depot.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-26 16:47:51 +0000
committerbjarni <bjarni@openttd.org>2006-09-26 16:47:51 +0000
commit40eecb339193a9c5fb100237a1a863687ea31c55 (patch)
tree381d620a928fbc6c40266c4078ae71959a878f36 /depot.h
parentce5dc846587432d853c72fcd36648ec9311eabbd (diff)
downloadopenttd-40eecb339193a9c5fb100237a1a863687ea31c55.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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/depot.h b/depot.h
index 6d61a8883..614a3faba 100644
--- a/depot.h
+++ b/depot.h
@@ -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)