diff options
author | belugas <belugas@openttd.org> | 2007-11-27 17:13:49 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-11-27 17:13:49 +0000 |
commit | b10eea628d07bf69c22faa6a156c337b41c15276 (patch) | |
tree | aca3c585347e4c3ad09d02252de1e3024066003f /src/newgrf.cpp | |
parent | 1682d5d6796505c7d87ab179cd7f95cccd31dd2c (diff) | |
download | openttd-b10eea628d07bf69c22faa6a156c337b41c15276.tar.xz |
(svn r11534) -Feature(newgrf): Implement property 23h for Industries.
This will add a cost to the removal of an industry using the cheat magic bulldozer.
Note that the removal of regular or newgrf industries without specified removal cost will have no cost applied to.
This is a difference from original spec, where a default base cost is added.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 1a6ab3b6b..5f8889db5 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -2066,6 +2066,10 @@ static bool IndustriesChangeInfo(uint indid, int numinfo, int prop, byte **bufp, SB(indsp->callback_flags, (prop - 0x21) * 8, 8, aflag); } break; + case 0x23: // removal cost multiplier + indsp->removal_cost_multiplier = grf_load_dword(&buf); + break; + default: ret = true; break; |