diff options
author | planetmaker <planetmaker@openttd.org> | 2013-10-17 21:45:40 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2013-10-17 21:45:40 +0000 |
commit | ed54d392011f7e2223891d4378743de13acac573 (patch) | |
tree | 4d3adca13383c7a788c4a6e94e08934827cfa217 | |
parent | c29ec8edeebf92c353093945aa00741af065cc96 (diff) | |
download | openttd-ed54d392011f7e2223891d4378743de13acac573.tar.xz |
(svn r25878) -Feature: [NewGRF] Object property 0x18 to allow specifying the number of objects of that type being placed upon map creation
-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 8f4fb0436..a1e8d0e54 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3882,6 +3882,10 @@ static ChangeInfoResult ObjectChangeInfo(uint id, int numinfo, int prop, ByteRea } break; + case 0x18: // Amount placed on 256^2 map on map creation + spec->generate_amount = buf->ReadByte(); + break; + default: ret = CIR_UNKNOWN; break; |