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
commit965693bdce182e87d8b068db954c662a160dcf7c (patch)
treef1dc943fc98d8ec1d424b1da36f4a3f224541b8e /openttd.h
parentc0fcbab79371776888c152faf4053f980e69e384 (diff)
downloadopenttd-965693bdce182e87d8b068db954c662a160dcf7c.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
};