From 0db0c16f950f22c9aa874fdee9abc3ba563c89a8 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 13 Feb 2022 22:56:09 +0000 Subject: [PATCH] Documentation: Fix A2VM subchunk labels --- docs/newgrf-additions.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/newgrf-additions.html b/docs/newgrf-additions.html index 378ed68e76..d6d4ae864d 100644 --- a/docs/newgrf-additions.html +++ b/docs/newgrf-additions.html @@ -483,19 +483,19 @@

Within an A2VM chunk, the NAME text (type T) field contains the name of the variable to map. The value of the language ID byte is ignored.

Action 0 Feature ID: C "A2VM" -> B "FEAT"

Within an A2VM chunk, the FEAT binary (type B) field contains the Variational Action 2 feature ID. This is 1 byte.

-

Property ID: C "A2VM" -> B "RSFT"

+

Shift to replace: C "A2VM" -> B "RSFT"

Within an A2VM chunk, the RSFT binary (type B) field contains the Variational Action 2 varadjust shift-num value to look for. This is 1 byte.
The shift-num value must be < 32 (0x20).
If this is not specified, a value of 0 is assumed.

-

Property ID: C "A2VM" -> B "RMSK"

+

Mask to replace: C "A2VM" -> B "RMSK"

Within an A2VM chunk, the RMSK binary (type B) field contains the Variational Action 2 varadjust and-mask value to look for. This is 4 bytes.
When using byte or word sized variational action 2s, the and-mask is zero-extended to 32 bits before comparing with this value.
If this is not specified, a value of 0 is assumed.

-

Property ID: C "A2VM" -> B "VSFT"

+

Replacement shift: C "A2VM" -> B "VSFT"

Within an A2VM chunk, the VSFT binary (type B) field contains the replacement Variational Action 2 varadjust shift-num value to use on the mapped variable. This is 1 byte.
The shift-num value must be < 32 (0x20).
If this is not specified, a value of 0 is assumed.

-

Property ID: C "A2VM" -> B "VMSK"

+

Replacement mask: C "A2VM" -> B "VMSK"

Within an A2VM chunk, the RMSK binary (type B) field contains the replacement Variational Action 2 varadjust and-mask value to use on the mapped variable. This is 4 bytes.
If this is not specified, a value of 0 is assumed.

Success Indicator Global Variable 0x8D Bit: C "A2VM" -> B "SETT"