mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r12746) -Codechange: Add map storage for station animation frame
This commit is contained in:
parent
9488db56d4
commit
b2095f37ac
@ -899,6 +899,7 @@
|
|||||||
<li>m6 bits 5..3: the station type (rail, airport, truck, bus, oilrig, dock, buoy)</li>
|
<li>m6 bits 5..3: the station type (rail, airport, truck, bus, oilrig, dock, buoy)</li>
|
||||||
<li>m6 bit 2: 1 when a drive through road stop is built over a town owned road, otherwise 0</li>
|
<li>m6 bit 2: 1 when a drive through road stop is built over a town owned road, otherwise 0</li>
|
||||||
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
<li>m6 bits 1..0 : <a href="#tropic_zone">Tropic zone definition</a></li>
|
||||||
|
<li>m7: animation frame</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -198,7 +198,7 @@ the array so you can quickly see what is used and what is not.
|
|||||||
<td class="bits">XXXX XXXX</td>
|
<td class="bits">XXXX XXXX</td>
|
||||||
<td class="bits">XXXX XXXX</td>
|
<td class="bits">XXXX XXXX</td>
|
||||||
<td class="bits"><span class="free">OO</span>XX X<span class="free">O</span>XX</td>
|
<td class="bits"><span class="free">OO</span>XX X<span class="free">O</span>XX</td>
|
||||||
<td class="bits"><span class="free">OOOO OOOO</span></td>
|
<td class="bits">XXXX XXXX</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="caption">road stop</td>
|
<td class="caption">road stop</td>
|
||||||
|
@ -68,6 +68,18 @@ static inline void SetStationGfx(TileIndex t, StationGfx gfx)
|
|||||||
_m[t].m5 = gfx;
|
_m[t].m5 = gfx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline uint8 GetStationAnimationFrame(TileIndex t)
|
||||||
|
{
|
||||||
|
assert(IsTileType(t, MP_STATION));
|
||||||
|
return _me[t].m7;
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline void SetStationAnimationFrame(TileIndex t, uint8 frame)
|
||||||
|
{
|
||||||
|
assert(IsTileType(t, MP_STATION));
|
||||||
|
_me[t].m7 = frame;
|
||||||
|
}
|
||||||
|
|
||||||
static inline bool IsRailwayStation(TileIndex t)
|
static inline bool IsRailwayStation(TileIndex t)
|
||||||
{
|
{
|
||||||
return GetStationType(t) == STATION_RAIL;
|
return GetStationType(t) == STATION_RAIL;
|
||||||
|
Loading…
Reference in New Issue
Block a user