summaryrefslogtreecommitdiff
path: root/src/town.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-12-03 22:23:10 +0000
committerterkhen <terkhen@openttd.org>2011-12-03 22:23:10 +0000
commitde0bf0663aaeec26845d048e2eaa5e08edf21f63 (patch)
tree2407406d652876b0bc72bd634fc406d789464819 /src/town.h
parent0e5f334315f8d461a62cc45b76193eddca6ce2a2 (diff)
downloadopenttd-de0bf0663aaeec26845d048e2eaa5e08edf21f63.tar.xz
(svn r23407) -Codechange: Keep a bitmap of all cargos accepted by towns.
Diffstat (limited to 'src/town.h')
-rw-r--r--src/town.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/town.h b/src/town.h
index c276be26b..19068ea53 100644
--- a/src/town.h
+++ b/src/town.h
@@ -185,6 +185,7 @@ void UpdateTownMaxPass(Town *t);
void UpdateTownRadius(Town *t);
void UpdateTownCargos(Town *t);
void UpdateTownCargoTotal(Town *t);
+void UpdateTownCargoBitmap();
CommandCost CheckIfAuthorityAllowsNewStation(TileIndex tile, DoCommandFlag flags);
Town *ClosestTownFromTile(TileIndex tile, uint threshold);
void ChangeTownRating(Town *t, int add, int max, DoCommandFlag flags);
@@ -284,4 +285,6 @@ void MakeDefaultName(T *obj)
obj->town_cn = (uint16)next; // set index...
}
+extern uint32 _town_cargos_accepted;
+
#endif /* TOWN_H */