summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-08-15 17:54:43 +0000
committerpeter1138 <peter1138@openttd.org>2008-08-15 17:54:43 +0000
commit550fc3a3f5185201ec6587734bb5686a2109c1a1 (patch)
tree0322a181ba444470d5defcf3fcdc45463c6c6cb5 /src/newgrf.cpp
parent1659719f31ed8b6ec7978b380f572da15a2b9f11 (diff)
downloadopenttd-550fc3a3f5185201ec6587734bb5686a2109c1a1.tar.xz
(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, indicating what it actually is.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 6ae310600..2f85738ef 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -546,7 +546,7 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
break;
case 0x17: // Cost factor
- rvi->base_cost = grf_load_byte(&buf);
+ rvi->cost_factor = grf_load_byte(&buf);
break;
case 0x18: // AI rank
@@ -735,7 +735,7 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
} break;
case 0x11: // Cost factor
- rvi->base_cost = grf_load_byte(&buf); // ?? is it base_cost?
+ rvi->cost_factor = grf_load_byte(&buf);
break;
case 0x12: // SFX
@@ -833,7 +833,7 @@ static bool ShipVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
break;
case 0x0A: // Cost factor
- svi->base_cost = grf_load_byte(&buf); // ?? is it base_cost?
+ svi->cost_factor = grf_load_byte(&buf);
break;
case 0x0B: // Speed (1 unit is 0.5 kmh)
@@ -952,7 +952,7 @@ static bool AircraftVehicleChangeInfo(uint engine, int numinfo, int prop, byte *
break;
case 0x0B: // Cost factor
- avi->base_cost = grf_load_byte(&buf); // ?? is it base_cost?
+ avi->cost_factor = grf_load_byte(&buf);
break;
case 0x0C: // Speed (1 unit is 8 mph, we translate to 1 unit is 1 km/h)