VariationalAction2/Railtypes: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
Frosch-bot (talk | contribs) m moved VarAction2Railtypes to VariationalAction2/Railtypes: use subpages |
Planetmaker (talk | contribs) →Variables: add version icons |
||
| Line 4: | Line 4: | ||
{| |- |
{| |- |
||
!Variable |
!Variable !![[GRFActionsDetailed|Size]]!!Version !! Description |
||
|- |
|- |
||
|40|||| |
|40||B||{{ottdp|1.0|ottdrev=r19056}}||Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline. |
||
|- |
|- |
||
|41|||| |
|41||B||{{ottdp|1.0|ottdrev=r19056}}||Enhanced tunnels; entrance has track above. Always 0 in OpenTTD. |
||
|- |
|- |
||
|42|||| |
|42||B||{{ottdp|1.0|ottdrev=r19056}}||Level crossing status: 0 if open (or not a crossing), 1 if closed. |
||
|- |
|- |
||
|43|||| |
|43||D||{{ottdp|1.0|ottdrev=r19056}}||Depot construction date (long format, 0 based); other: current date |
||
|} |
|} |
||
Available in OpenTTD r19056 |
|||
== Description == |
== Description == |
||
Revision as of 12:09, 23 July 2011
Introduction
Variables
| Variable | Size | Version | Description |
|---|---|---|---|
| 40 | B | Terrain type: 0 normal, 1 desert, 2 rainforest, 4 on or above snowline. | |
| 41 | B | Enhanced tunnels; entrance has track above. Always 0 in OpenTTD. | |
| 42 | B | Level crossing status: 0 if open (or not a crossing), 1 if closed. | |
| 43 | D | Depot construction date (long format, 0 based); other: current date |
Description
Terrain type (40)
Format: byte
| value | Meaning |
|---|---|
| 0 | normal tile |
| 1 | desert tile |
| 2 | rain forest tile |
| 4 | tile on or above snow line |
Enhanced tunnels (41)
Format: byte
This variable will always return 0 and is reserved for future use with enhanced tunnels.
Level crossing status (42)
Format: byte
This variable returns 1, if a crossing is closed. If the crossing is open or the tile is no level crossing, the return value is 0.