summaryrefslogtreecommitdiff
path: root/src/economy_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-11-08 18:04:53 +0000
committerfrosch <frosch@openttd.org>2009-11-08 18:04:53 +0000
commitf48f73f060b388ab51fec8112170cfa8d4b8ca17 (patch)
tree69fd79a57fa4ce4a62462c8be34c2b380230bc1b /src/economy_type.h
parent5d3fa809317a84528af338cac7d7903250eb959b (diff)
downloadopenttd-f48f73f060b388ab51fec8112170cfa8d4b8ca17.tar.xz
(svn r18016) -Codechange: Move the arbitrary basecost multiplier offset (8) to newgrf loading and make the internal state zero-based instead.
Diffstat (limited to 'src/economy_type.h')
-rw-r--r--src/economy_type.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/economy_type.h b/src/economy_type.h
index 4d726ed5d..ccaf9de4a 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -171,11 +171,14 @@ static const int LOAN_INTERVAL = 10000;
static const uint64 MAX_INFLATION = (1ull << (63 - 32)) - 1;
/**
- * Maximum NewGRF price modifier including the shift offset of 8 bits.
+ * Maximum NewGRF price modifiers.
* Increasing base prices by factor 65536 should be enough.
* @see MAX_INFLATION
*/
-static const int MAX_PRICE_MODIFIER = 16 + 8;
+enum {
+ MIN_PRICE_MODIFIER = -8,
+ MAX_PRICE_MODIFIER = 16,
+};
struct CargoPayment;
typedef uint32 CargoPaymentID;