summaryrefslogtreecommitdiff
path: root/src/station.h
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2007-01-18 09:34:44 +0000
committerKUDr <kudr@openttd.org>2007-01-18 09:34:44 +0000
commit147ca220600392d3c3394bfe194cb31de8d9f6ec (patch)
tree27b6f6857e67b835eddc042d6dd1fdb286c4862a /src/station.h
parent653290c76ab322dc4d192e26cd2502aa2ea284dd (diff)
downloadopenttd-147ca220600392d3c3394bfe194cb31de8d9f6ec.tar.xz
(svn r8231) -Fix (r8125): MP desync caused by calling Random() from station constructor. This was wrong because station constructor is called also when loading savegame and when player tries to build station when it is not sure that it will succeed (thanks Rubidium)
Diffstat (limited to 'src/station.h')
-rw-r--r--src/station.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station.h b/src/station.h
index 7299b87f7..b4365d2ba 100644
--- a/src/station.h
+++ b/src/station.h
@@ -159,6 +159,7 @@ struct Station {
void* operator new (size_t size, int st_idx);
void operator delete(void *p, int st_idx);
+ void AddFacility(byte new_facility_bit, TileIndex facil_xy);
void MarkDirty() const;
void MarkTilesDirty() const;
bool TileBelongsToRailStation(TileIndex tile) const;