summaryrefslogtreecommitdiff
path: root/src/rail.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-04-29 07:11:54 +0000
committerpeter1138 <peter1138@openttd.org>2008-04-29 07:11:54 +0000
commit5ca6fd67fcf22c9293a79d0c04d9f487a9b853d9 (patch)
tree36d5420c98695a693d66dfeb7cbd25242891e281 /src/rail.cpp
parent868c17a175236b7cc0d08e6df881a2e1124e895e (diff)
downloadopenttd-5ca6fd67fcf22c9293a79d0c04d9f487a9b853d9.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.cpp10
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);