summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-17 10:10:31 +0000
committertron <tron@openttd.org>2006-03-17 10:10:31 +0000
commit89090790c2405a738f5977310549cf94df9c06cb (patch)
tree0fa3ce74d133cc13b1aaf01d162e59d16ce3371e /train_gui.c
parentd8677f1afad4e706b92689b471d6c7a6c210aa82 (diff)
downloadopenttd-89090790c2405a738f5977310549cf94df9c06cb.tar.xz
(svn r3916) Get/Set the rail type by [GS]etRailType{Crossing,OnBridge,}()
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c
index d8be51d8b..6325db403 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -335,7 +335,7 @@ static void ShowBuildTrainWindow(TileIndex tile)
if (tile != 0) {
w->caption_color = GetTileOwner(tile);
- WP(w,buildtrain_d).railtype = GB(_m[tile].m3, 0, 4);
+ WP(w,buildtrain_d).railtype = GetRailType(tile);
} else {
w->caption_color = _local_player;
WP(w,buildtrain_d).railtype = GetBestRailtype(GetPlayer(_local_player));