(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)

This commit is contained in:
KUDr
2007-01-18 09:34:44 +00:00
parent f6d68ab378
commit f0e463ecca
3 changed files with 19 additions and 21 deletions

View File

@@ -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;