summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-05 12:46:14 +0000
committerbjarni <bjarni@openttd.org>2006-09-05 12:46:14 +0000
commit45467002186d715077dceff154d2de7bf41a49e3 (patch)
treef1dc943fc98d8ec1d424b1da36f4a3f224541b8e /openttd.h
parent0c46606540e8122b8536f6df759eaaf8d4e0bf4c (diff)
downloadopenttd-45467002186d715077dceff154d2de7bf41a49e3.tar.xz
(svn r6393) -Fix: [autoreplace] now refit costs are added to the estimated costs (could spend more than allowed when estimate and actual cost were not the same)
-Fix: [autoreplace] fixed a very rare failure when building an engine could cost more than the player could pay before selling the old one this happened when the replacing the front cost so much that the the rear end didn't have enough money to build as expected now the estimate keeps track of the price for the wagons/engines in front of the unit it's currently looking at -Codechange: [autoreplace] added function to learn if and what cargo type to refit to. Needed to allow the estimation to tell refit costs
Diffstat (limited to 'openttd.h')
-rw-r--r--openttd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/openttd.h b/openttd.h
index 14ecc6dcb..6d53aa7b8 100644
--- a/openttd.h
+++ b/openttd.h
@@ -279,6 +279,7 @@ enum {
NUM_CARGO = 12,
+ CT_NO_REFIT = 0xFE,
CT_INVALID = 0xFF
};