summaryrefslogtreecommitdiff
path: root/src/depot_gui.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
commit8bb0ff0a63e0060075555cb31ba0765501bbd859 (patch)
tree36d5420c98695a693d66dfeb7cbd25242891e281 /src/depot_gui.cpp
parent2d7430cf33909c699432ce3b2adb9a5c585d55c3 (diff)
downloadopenttd-8bb0ff0a63e0060075555cb31ba0765501bbd859.tar.xz
(svn r12917) -Codechange: standardise variable names called with FOR_ALL_ENGINEIDS_OF_TYPE
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index e964a8d84..e88fb6de8 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -653,17 +653,17 @@ static void ResizeDefaultWindowSizeForRoadVehicles()
static void ResizeDefaultWindowSize(VehicleType type)
{
- EngineID engine;
uint max_width = 0;
uint max_height = 0;
- FOR_ALL_ENGINEIDS_OF_TYPE(engine, type) {
+ EngineID eid;
+ FOR_ALL_ENGINEIDS_OF_TYPE(eid, type) {
uint x, y;
switch (type) {
default: NOT_REACHED();
- case VEH_SHIP: GetShipSpriteSize( engine, x, y); break;
- case VEH_AIRCRAFT: GetAircraftSpriteSize(engine, x, y); break;
+ case VEH_SHIP: GetShipSpriteSize( eid, x, y); break;
+ case VEH_AIRCRAFT: GetAircraftSpriteSize(eid, x, y); break;
}
if (x > max_width) max_width = x;
if (y > max_height) max_height = y;