From 45467002186d715077dceff154d2de7bf41a49e3 Mon Sep 17 00:00:00 2001 From: bjarni Date: Tue, 5 Sep 2006 12:46:14 +0000 Subject: (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 --- openttd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openttd.h') 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 }; -- cgit v1.2.3-54-g00ecf