diff options
author | rubidium <rubidium@openttd.org> | 2008-01-09 21:05:03 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-01-09 21:05:03 +0000 |
commit | 2d2e1e386315db0c83f508c19387e9f2e0c9cee1 (patch) | |
tree | 6b9fc11a0135e1ccdb74151dd8962e4fd5264843 /src/rail_gui.cpp | |
parent | a5101fb403bc7220884236426c38bdafc2cd17cf (diff) | |
download | openttd-2d2e1e386315db0c83f508c19387e9f2e0c9cee1.tar.xz |
(svn r11800) -Codechange: move some functions to a more logical location + some type safety.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r-- | src/rail_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 53a823ed1..b83a4efe6 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1540,11 +1540,11 @@ void SetDefaultRailGui() switch (rt) { case RAILTYPE_END + 0: rt = RAILTYPE_RAIL; - while (rt < RAILTYPE_END && !HasRailtypeAvail(GetPlayer(_local_player), rt)) rt++; + while (rt < RAILTYPE_END && !HasRailtypeAvail(_local_player, rt)) rt++; break; case RAILTYPE_END + 1: - rt = GetBestRailtype(GetPlayer(_local_player)); + rt = GetBestRailtype(_local_player); break; default: |