Mercurial > hg > openttd
changeset 2017:5af8a2508e9a draft
(svn r2525) - Fix: [pbs] Fix a mistake in the comments/docs.
author | hackykid <hackykid@openttd.org> |
---|---|
date | Wed, 06 Jul 2005 10:43:36 +0000 |
parents | e8113af7edae |
children | a107cac0ce57 |
files | docs/landscape.html pbs.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/landscape.html +++ b/docs/landscape.html @@ -120,8 +120,8 @@ <tr><td nowrap valign=top><tt>B</tt> </td><td align=left>fence on the N side (track in the S corner)</td></tr> <tr><td nowrap valign=top><tt>C</tt> </td><td align=left>on snow or desert</td></tr> </table></li> -<li>map3_lo bits 0..3 = <a name="TrackType">track type</a>: <tt>0</tt> - conventional railway, <tt>1</tt> - monorail, <tt>2</tt> - maglev -<li>map3_lo bits 4..7 = Pbs reserved status: +<li>map3_hi bits 0..3 = <a name="TrackType">track type</a>: <tt>0</tt> - conventional railway, <tt>1</tt> - monorail, <tt>2</tt> - maglev +<li>map3_hi bits 4..7 = Pbs reserved status: <table> <tr><td nowrap valign=top><tt>bits 4..6</tt> </td><td align=left>'Track'number of reserved track + 1, if this is zero it means nothing is reserved on this tile</td></tr> <tr><td nowrap valign=top><tt>bit 7</tt> </td><td align=left>If this is set, then the opposite track ('Track'number^1) is also reserved</td></tr>
--- a/pbs.c +++ b/pbs.c @@ -14,8 +14,8 @@ /* reserved track encoding: normal railway tracks: - map3lo bits 4..6 = 'Track'number of reserved track + 1, if this is zero it means nothing is reserved on this tile - map3lo bit 7 = if this is set, then the opposite track ('Track'number^1) is also reserved + map3hi bits 4..6 = 'Track'number of reserved track + 1, if this is zero it means nothing is reserved on this tile + map3hi bit 7 = if this is set, then the opposite track ('Track'number^1) is also reserved waypoints/stations: map3lo bit 6 set = track is reserved tunnels/bridges: