diff options
author | rubidium <rubidium@openttd.org> | 2007-03-08 16:27:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-08 16:27:54 +0000 |
commit | 36cea84b1108db28a7a61fc23e2e2020a64a89dd (patch) | |
tree | e32a4dc6207efbaacc5af4e5c41a353b98b9a897 /src/players.cpp | |
parent | 05eb676f22c73cf870b8abec383985641bd815de (diff) | |
download | openttd-36cea84b1108db28a7a61fc23e2e2020a64a89dd.tar.xz |
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
Diffstat (limited to 'src/players.cpp')
-rw-r--r-- | src/players.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/players.cpp b/src/players.cpp index 2eaa45933..1da49754e 100644 --- a/src/players.cpp +++ b/src/players.cpp @@ -593,7 +593,7 @@ byte GetPlayerRailtypes(PlayerID p) const Engine* e = GetEngine(i); const EngineInfo *ei = EngInfo(i); - if (e->type == VEH_Train && HASBIT(ei->climates, _opt.landscape) && + if (e->type == VEH_TRAIN && HASBIT(ei->climates, _opt.landscape) && (HASBIT(e->player_avail, p) || _date >= e->intro_date + 365)) { const RailVehicleInfo *rvi = RailVehInfo(i); @@ -704,7 +704,7 @@ int32 CmdSetAutoReplace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) return CMD_ERROR; // make sure that we do not replace a plane with a helicopter or vise versa - if (GetEngine(new_engine_type)->type == VEH_Aircraft && + if (GetEngine(new_engine_type)->type == VEH_AIRCRAFT && (AircraftVehInfo(old_engine_type)->subtype & AIR_CTOL) != (AircraftVehInfo(new_engine_type)->subtype & AIR_CTOL)) return CMD_ERROR; @@ -743,7 +743,7 @@ int32 CmdSetAutoReplace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { p->renew_keep_length = (bool)GB(p2, 0, 1); if (IsLocalPlayer()) { - InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train); + InvalidateWindow(WC_REPLACE_VEHICLE, VEH_TRAIN); } } break; |