From ed54d392011f7e2223891d4378743de13acac573 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Thu, 17 Oct 2013 21:45:40 +0000 Subject: (svn r25878) -Feature: [NewGRF] Object property 0x18 to allow specifying the number of objects of that type being placed upon map creation --- src/newgrf.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3-70-g09d2