summaryrefslogtreecommitdiff
path: root/player.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-29 16:30:26 +0000
committercelestar <celestar@openttd.org>2006-03-29 16:30:26 +0000
commit6c44bf50128ccd39a5ba7ba3298634d1298cab03 (patch)
treec1903bfd394f761768fa9d907c58a76229e1b2f8 /player.h
parentf6662e056ddbf15463827b524a343b67dd5a3440 (diff)
downloadopenttd-6c44bf50128ccd39a5ba7ba3298634d1298cab03.tar.xz
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
Diffstat (limited to 'player.h')
-rw-r--r--player.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/player.h b/player.h
index 3195e1c7f..ebc42646d 100644
--- a/player.h
+++ b/player.h
@@ -248,6 +248,7 @@ static inline RailType GetBestRailtype(const Player* p)
{
if (HasRailtypeAvail(p, RAILTYPE_MAGLEV)) return RAILTYPE_MAGLEV;
if (HasRailtypeAvail(p, RAILTYPE_MONO)) return RAILTYPE_MONO;
+ if (HasRailtypeAvail(p, RAILTYPE_ELECTRIC)) return RAILTYPE_ELECTRIC;
return RAILTYPE_RAIL;
}