diff options
author | peter1138 <peter1138@openttd.org> | 2008-04-29 07:11:54 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-04-29 07:11:54 +0000 |
commit | 8bb0ff0a63e0060075555cb31ba0765501bbd859 (patch) | |
tree | 36d5420c98695a693d66dfeb7cbd25242891e281 /src/rail.cpp | |
parent | 2d7430cf33909c699432ce3b2adb9a5c585d55c3 (diff) | |
download | openttd-8bb0ff0a63e0060075555cb31ba0765501bbd859.tar.xz |
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
Diffstat (limited to 'src/rail.cpp')
-rw-r--r-- | src/rail.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rail.cpp b/src/rail.cpp index fe799f09d..6ab511a2b 100644 --- a/src/rail.cpp +++ b/src/rail.cpp @@ -202,14 +202,14 @@ RailTypes GetPlayerRailtypes(PlayerID p) { RailTypes rt = RAILTYPES_NONE; - EngineID i; - FOR_ALL_ENGINEIDS_OF_TYPE(i, VEH_TRAIN) { - const Engine* e = GetEngine(i); - const EngineInfo *ei = EngInfo(i); + EngineID eid; + FOR_ALL_ENGINEIDS_OF_TYPE(eid, VEH_TRAIN) { + const Engine* e = GetEngine(eid); + const EngineInfo *ei = EngInfo(eid); if (HasBit(ei->climates, _opt.landscape) && (HasBit(e->player_avail, p) || _date >= e->intro_date + 365)) { - const RailVehicleInfo *rvi = RailVehInfo(i); + const RailVehicleInfo *rvi = RailVehInfo(eid); if (rvi->railveh_type != RAILVEH_WAGON) { assert(rvi->railtype < RAILTYPE_END); |