summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-02-03 20:39:06 +0000
committerfrosch <frosch@openttd.org>2009-02-03 20:39:06 +0000
commit55728d9e188b8116b3fbc57703cb1c0c52f715a2 (patch)
tree1a670a0075445d14655ef1c60c222a4c65b69612 /src
parent8d257edad3b9c72861b58c945fbb9e056813ffdf (diff)
downloadopenttd-55728d9e188b8116b3fbc57703cb1c0c52f715a2.tar.xz
(svn r15326) -Fix: Old-ai-ishm when refitting vehicles.
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_cmd.cpp2
-rw-r--r--src/roadveh_cmd.cpp2
-rw-r--r--src/ship_cmd.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp
index 587cf2453..881f0339d 100644
--- a/src/aircraft_cmd.cpp
+++ b/src/aircraft_cmd.cpp
@@ -570,7 +570,7 @@ CommandCost CmdRefitAircraft(TileIndex tile, uint32 flags, uint32 p1, uint32 p2,
_returned_refit_capacity = pass;
CommandCost cost;
- if (IsHumanCompany(v->owner) && new_cid != v->cargo_type) {
+ if (new_cid != v->cargo_type) {
cost = GetRefitCost(v->engine_type);
}
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index 36b15df67..f6b54934c 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -2071,7 +2071,7 @@ CommandCost CmdRefitRoadVeh(TileIndex tile, uint32 flags, uint32 p1, uint32 p2,
total_capacity += capacity;
- if (IsHumanCompany(v->owner) && new_cid != v->cargo_type) {
+ if (new_cid != v->cargo_type) {
cost.AddCost(GetRefitCost(v->engine_type));
}
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 275b9b9dc..d18732440 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -933,7 +933,7 @@ CommandCost CmdRefitShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2, con
}
_returned_refit_capacity = capacity;
- if (IsHumanCompany(v->owner) && new_cid != v->cargo_type) {
+ if (new_cid != v->cargo_type) {
cost = GetRefitCost(v->engine_type);
}