diff options
author | celestar <celestar@openttd.org> | 2005-07-20 22:02:58 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-07-20 22:02:58 +0000 |
commit | 7bce410f619798f60a65c1c1dde9512598d7d3dd (patch) | |
tree | 0116afc35d1c231116095467d18c2295cbffa8f1 /train_gui.c | |
parent | b4b7d1d6bd8794cf51f9ecb0808fe3aae4e0b734 (diff) | |
download | openttd-7bce410f619798f60a65c1c1dde9512598d7d3dd.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 'train_gui.c')
-rw-r--r-- | train_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c index 9a4c15cc9..2905c554d 100644 --- a/train_gui.c +++ b/train_gui.c @@ -323,7 +323,7 @@ static void ShowBuildTrainWindow(TileIndex tile) WP(w,buildtrain_d).railtype = _m[tile].m3 & 0xF; } else { w->caption_color = _local_player; - WP(w,buildtrain_d).railtype = GetPlayer(_local_player)->max_railtype - 1; + WP(w,buildtrain_d).railtype = GetBestRailtype(GetPlayer(_local_player)); } } |