Add NewGRF object property/flag to use land as object ground sprite

This handles variable ground densities, snow/desert, etc.
This commit is contained in:
Jonathan G Rennison
2021-12-04 21:45:33 +00:00
parent 906fde15c7
commit 924ffb013f
11 changed files with 289 additions and 8 deletions

View File

@@ -1853,6 +1853,52 @@
<li>m3: random bits</li>
<li>m5: index into the array of objects, bits 16 to 23 (lower bits in m2)</li>
<li>m7: animation counter</li>
<li style="color: blue">m4 bits 7..5: update counter (for objects using land ground sprites), incremented on every periodic processing.<BR>
For snow and desert, these bits are not used, tile is updated on every periodic processing.</li>
<li style="color: blue">m4 bits 3..2: ground type (for objects using land ground sprites):
<table style="color: blue">
<tr>
<td nowrap valign=top><tt>0</tt>&nbsp; </td>
<td align=left>bare land / grass</td>
</tr>
<tr>
<td nowrap valign=top><tt>1</tt>&nbsp; </td>
<td align=left>snow or desert</td>
</tr>
</table>
</li>
<li style="color: blue">m4 bits 1..0: density (for objects using land ground sprites):
<table style="color: blue">
<tr>
<td nowrap valign=top><tt>0</tt>&nbsp; </td>
<td>bare land</td>
<td>1/4 snow</td>
<td></td>
</tr>
<tr>
<td nowrap valign=top><tt>1</tt>&nbsp; </td>
<td>1/3 grass</td>
<td>2/4 snow;&nbsp;</td>
<td>1/2 desert</td>
</tr>
<tr>
<td nowrap valign=top><tt>2</tt>&nbsp; </td>
<td>2/3 grass</td>
<td>3/4 snow</td>
<td></td>
</tr>
<tr>
<td nowrap valign=top><tt>3</tt>&nbsp; </td>
<td>full grass;&nbsp;</td>
<td>full snow;&nbsp;</td>
<td>full desert</td>
</tr>
</table>
</li>
</ul>
</td>
</tr>