summaryrefslogtreecommitdiff
path: root/station.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-05-11 10:33:58 +0000
committercelestar <celestar@openttd.org>2006-05-11 10:33:58 +0000
commit48d991b8197db61c41ac35b3b08be85344612ba5 (patch)
tree95ea258355086eae6b3df6fc5bd9bee882e5a293 /station.h
parent151e79231d564cc66b381a50d4cb3116719499de (diff)
downloadopenttd-48d991b8197db61c41ac35b3b08be85344612ba5.tar.xz
(svn r4822) -Feature: Station List View can now be sorted and filtered (by waiting cargo type and facilities)
Diffstat (limited to 'station.h')
-rw-r--r--station.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/station.h b/station.h
index 4101a4d08..a1d7dc5ae 100644
--- a/station.h
+++ b/station.h
@@ -8,6 +8,7 @@
#include "sprite.h"
#include "tile.h"
#include "newgrf_station.h"
+#include "window.h"
typedef struct GoodsEntry {
uint16 waiting_acceptance;
@@ -138,6 +139,10 @@ void UpdateAllStationVirtCoord(void);
VARDEF SortStruct *_station_sort;
+/* sorter stuff */
+void RebuildStationLists(void);
+void ResortStationLists(void);
+
extern MemoryPool _station_pool;
/**
@@ -191,9 +196,6 @@ static inline uint16 GetRoadStopPoolSize(void)
/* End of stuff for ROADSTOPS */
-VARDEF bool _station_sort_dirty[MAX_PLAYERS];
-VARDEF bool _global_station_sort_dirty;
-
void AfterLoadStations(void);
void GetProductionAroundTiles(AcceptedCargo produced, TileIndex tile, int w, int h, int rad);
void GetAcceptanceAroundTiles(AcceptedCargo accepts, TileIndex tile, int w, int h, int rad);