From b6630acc24e64f24c46b59d3ccfa54bd06f86e18 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 13 Jun 2022 01:36:06 +0100 Subject: [PATCH] Documentation: Fix explanation of road stops terrain type variable --- docs/newgrf-roadstops.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/newgrf-roadstops.html b/docs/newgrf-roadstops.html index 7c0cdf9629..7ddd4b6f12 100644 --- a/docs/newgrf-roadstops.html +++ b/docs/newgrf-roadstops.html @@ -243,8 +243,16 @@ The remaining bits are reserved for future use and should be masked.

-

Road stop tile/terrain type (42, or mappable variable: roadstop_terrain_type)

-

This has the same value as object (feature F) variable 41.

+

Road stop tile terrain type (42, or mappable variable: roadstop_terrain_type)

+

This has the same value as bits 0 - 7 of object (feature F) variable 41. + + + + + + +
ValueMeaning
0Normal
1Desert
2Rainforest
4On or above snowline
+

Road stop road type (43, or mappable variable: roadstop_road_type)

This has the value of the (translated) roadtype the road stop is built on, or the current roadtype in the build GUI. If the roadtype has no entry in the roadtype translation table of the GRF, this value will be 0xFF. If no translation table is present, the raw value will be returned. Note: only exact matches of roadtypes are reported. If the translation table of the GRF does not contain the exact roadtype 0xFF is returned.