summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-07-20 22:02:58 +0000
committercelestar <celestar@openttd.org>2005-07-20 22:02:58 +0000
commit18a93cca3d4c590949015ff56e34d8906c60199a (patch)
tree0116afc35d1c231116095467d18c2295cbffa8f1 /openttd.c
parent030c37160db989c0c67ab3817381787e6c8d8d20 (diff)
downloadopenttd-18a93cca3d4c590949015ff56e34d8906c60199a.tar.xz
(svn r2657) -Codechange: The available railtypes per player are now a bitmask, so
that railtypes do not be in ascending order of appearance. Allows easier implementation or more railtypes
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openttd.c b/openttd.c
index 8cef88613..85a65d800 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1279,6 +1279,7 @@ bool AfterLoadGame(uint version)
{
Window *w;
ViewPort *vp;
+ Player *p;
// in version 2.1 of the savegame, town owner was unified.
if (version <= 0x200) {
@@ -1432,5 +1433,9 @@ bool AfterLoadGame(uint version)
} END_TILE_LOOP(tile, MapSizeX(), MapSizeY(), 0);
}
+ FOR_ALL_PLAYERS(p) {
+ p->avail_railtypes = GetPlayerRailtypes(p->index);
+ }
+
return true;
}