http://devs.openttd.org/~frosch/texts/farmtiles.txt
http://devs.openttd.org/~frosch/diffs/c ... tiles.diff
Tiles created as 'field tiles' by this patch support industry tile var 43 (XY offsets from north tile of industry, in format 00yxYYXX, with signed values).
I have used var 43 a lot to check specific tile locations in industry layouts. However I am having a problem understanding how to check ranges correctly. For example, dividing into quadrants of +XX +YY, +XX -YY, -XX +YY, -XX -YY.
I think I can see why this doesn't work, but I can't see what should work.
Code: Select all
-1 * 0 02 09 C1 //layout 1
85 43 //check relative position (00yx[YYXX])
00 FF FF //don't shift, don't mask
\b4 //number of ranges to check (number of tiles) [range: XX YY XX YY]
\wx00 00 00 79 79
\wx01 00 80 79 FF
\wx02 80 00 FF 79
\wx03 80 80 FF FF
\wx04 //00 01 00 01 <default>
