From 254bc4a710d0a395f7910bedce11a13296c657f9 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 19 Nov 2018 19:29:52 +0000 Subject: [PATCH 1/2] Documentation: Fix typo in action 0 remapping description --- docs/newgrf-additions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/newgrf-additions.html b/docs/newgrf-additions.html index 49910151bf..9e1231b1aa 100644 --- a/docs/newgrf-additions.html +++ b/docs/newgrf-additions.html @@ -75,7 +75,7 @@

Action 14 - Property Mapping for Action 0

See Action 14 Specification and Action 0 Specification for background information.

The property mapping mechanism has the feature name: property_mapping, this document describes version 1.

-

Users of this mechanism SHOULD at minimum use test for the presence of the feature above or test variable 8D, below.

+

Users of this mechanism SHOULD at minimum test for the presence of the feature above or test variable 8D, below.

Property Mapping: C "A0PM"

Each A0PM chunk (type C) describes an individual property mapping.
Sub-chunks within each A0PM chunk may appear in any order, however except where otherwise noted each sub-chunk SHOULD only appear ONCE within an individual A0PM chunk.

From 2e539dfeca74e61d598d6fc44d98918a2cb16ee0 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 22 Nov 2018 19:14:02 +0000 Subject: [PATCH 2/2] Fix typo in static assert message --- src/newgrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 83fef234f6..3395f801b3 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4560,7 +4560,7 @@ static void FeatureChangeInfo(ByteReader *buf) /* GSF_RAILTYPES */ RailTypeChangeInfo, /* GSF_AIRPORTTILES */ AirportTilesChangeInfo, }; - static_assert(lengthof(handler) == lengthof(_cur.grffile->action0_property_remaps), "Action 0 featur elist length mismatch"); + static_assert(lengthof(handler) == lengthof(_cur.grffile->action0_property_remaps), "Action 0 feature list length mismatch"); uint8 feature = buf->ReadByte(); uint8 numprops = buf->ReadByte();