From 7bce410f619798f60a65c1c1dde9512598d7d3dd Mon Sep 17 00:00:00 2001 From: celestar Date: Wed, 20 Jul 2005 22:02:58 +0000 Subject: (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 --- train_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'train_gui.c') 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)); } } -- cgit v1.2.3-54-g00ecf