summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2013-10-17 21:45:40 +0000
committerplanetmaker <planetmaker@openttd.org>2013-10-17 21:45:40 +0000
commited54d392011f7e2223891d4378743de13acac573 (patch)
tree4d3adca13383c7a788c4a6e94e08934827cfa217
parentc29ec8edeebf92c353093945aa00741af065cc96 (diff)
downloadopenttd-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.cpp4
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;