summaryrefslogtreecommitdiff
path: root/docs/landscape.html
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-04-06 07:46:15 +0100
committerMichael Lutz <michi@icosahedron.de>2019-05-01 21:36:27 +0200
commitc02ef3e4564b7b54d49f0827d2d7625cbc38f335 (patch)
tree1c0ee62b6ce55124b247daaafa42300bfaa932e7 /docs/landscape.html
parent21edf67f89c60351d5a0d84625455aa296b6b950 (diff)
downloadopenttd-c02ef3e4564b7b54d49f0827d2d7625cbc38f335.tar.xz
Feature: Add NotRoadTypes (NRT)
Diffstat (limited to 'docs/landscape.html')
-rw-r--r--docs/landscape.html51
1 files changed, 34 insertions, 17 deletions
diff --git a/docs/landscape.html b/docs/landscape.html
index d4d8f7efe..1a6cd8386 100644
--- a/docs/landscape.html
+++ b/docs/landscape.html
@@ -98,6 +98,32 @@
</li>
</ul>
</li>
+ <li><span style="font-weight: bold;">m4:</span><br>
+ <a name="RoadType"></a>
+ Road roadtype. Used for all tiles with road (road, station, tunnelbridge).
+ <ul>
+ <li>
+ Bits 5..0: Road roadtype, 0x3F for no road.
+ </li>
+ </ul>
+ </li>
+ <li><span style="font-weight: bold;">m8:</span><br>
+ <a name="TramType"></a>
+ Tram roadtype. Used for all tiles with road (road, station, tunnelbridge).
+ <ul>
+ <li>
+ Bits 11..6: Tram roadtype, 0x3F for no tram.
+ </li>
+ </ul>
+ </li>
+ <li><span style="font-weight: bold;">m8:</span><br>
+ <ul>
+ <li>
+ <a name="RailType"></a>
+ Bits 5..0: Railtype. Used for all tiles with rail (road, rail, station, tunnelbridge).
+ </li>
+ </ul>
+ </li>
<li><span style="font-weight: bold;">m7:</span><br>
Animation frame/state. Used for houses, industries, objects and stations.
</li>
@@ -108,7 +134,7 @@
<table border=1 cellpadding=3>
<tr bgcolor="#0099FF">
<th align=left><font color="#FFFFFF">Class</font></th>
- <th align=left><font color="#FFFFFF">Meaning & details of encoding</font></th>
+ <th align=left><font color="#FFFFFF">Meaning &amp; details of encoding</font></th>
</tr>
<tr bgcolor="#CCCCCC">
<td align=left><strong><a name="Class0"><tt> 0 </tt></a></strong></td>
@@ -535,21 +561,10 @@
<td>
<ul>
<li>m2: Index into the array of towns (owning town for town roads; closest town otherwise, INVALID_TOWN if there is no town or we are creating a town)</li>
- <li>m7 bit 5 set = on snow or desert</li>
- <li>m7 bits 7..6: present road types
- <table>
- <tr>
- <td>bit 0&nbsp; </td>
- <td>normal road</td>
- </tr>
-
- <tr>
- <td>bit 1&nbsp; </td>
- <td>tram</td>
- </tr>
- </table>
- </li>
<li>m3 bits 7..4: <a href="#OwnershipInfo">owner</a> of road type 1 (tram); OWNER_NONE (<tt>10</tt>) is stored as OWNER_TOWN (<tt>0F</tt>)
+ <li>m4 bits 5..0: <a href="#RoadType">Roadtype</a></li>
+ <li>m7 bit 5 set = on snow or desert</li>
+ <li>m8 bits 11..6: <a href="#TramType">Tramtype</a></li>
<li>m5 bits 7 clear: road or level-crossing
<ul>
<li>m6 bits 5..3:
@@ -862,6 +877,7 @@
<li>m3 bits 7..4: persistent random data for railway stations/waypoints and airports)</li>
<li>m3 bits 7..4: <a href="#OwnershipInfo">owner</a> of tram tracks (road stop)</li>
<li>m4: custom station id; 0 means standard graphics</li>
+ <li>m4: <a href="#RoadType">Roadtype</a> for road stops</li>
<li>m5: graphics index (range from 0..255 for each station type):
<table>
<tr>
@@ -977,8 +993,8 @@
<li>m6 bit 2: pbs reservation state for railway stations/waypoints</li>
<li>m7 bits 4..0: <a href="#OwnershipInfo">owner</a> of road (road stops)</li>
- <li>m7 bits 7..6: present road types (road stops)</li>
<li>m7: animation frame (railway stations/waypoints, airports)</li>
+ <li>m8 bits 11..6: <a href="#TramType">Tramtype</a></li>
<li>m8 bits 5..0: <a href="#TrackType">track type</a> for railway stations/waypoints</li>
</ul>
</td>
@@ -1445,6 +1461,7 @@
<ul>
<li>m1 bits 4..0: <a href="#OwnershipInfo">owner</a></li>
<li>m3 bits 7..4: <a href="#OwnershipInfo">owner</a> of tram</li>
+ <li>m4: <a href="#RoadType">Roadtype</a></li>
<li>m5 bit 4: pbs reservation state for railway</li>
<li>m5 bits 7 clear: tunnel entrance/exit</li>
<li>m5 bit 7 set: bridge ramp
@@ -1581,7 +1598,7 @@
</li>
<li>m7 bits 4..0: <a href="#OwnershipInfo">owner</a> of road</li>
<li>m7 bit 5 set = on snow or desert</li>
- <li>m7 bits 7..6: present road types for road</li>
+ <li>m8 bits 11..6: <a href="#TramType">Tramtype</a></li>
<li>m8 bits 5..0: <a href="#TrackType">track type</a> for railway</li>
</ul>
</td>