mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-12 09:09:09 +00:00
This commit is contained in:
committed by
GitHub
parent
92cbf7ae43
commit
d5ff6b4156
@@ -184,6 +184,7 @@ uint32_t RoadStopScopeResolver::GetVariable(uint8_t variable, [[maybe_unused]] u
|
|||||||
|
|
||||||
/* 16 bit road stop ID of nearby tiles */
|
/* 16 bit road stop ID of nearby tiles */
|
||||||
case 0x6B: {
|
case 0x6B: {
|
||||||
|
if (this->tile == INVALID_TILE) return 0xFFFFFFFF;
|
||||||
TileIndex nearby_tile = GetNearbyTile(parameter, this->tile);
|
TileIndex nearby_tile = GetNearbyTile(parameter, this->tile);
|
||||||
|
|
||||||
if (!IsAnyRoadStopTile(nearby_tile)) return 0xFFFFFFFF;
|
if (!IsAnyRoadStopTile(nearby_tile)) return 0xFFFFFFFF;
|
||||||
|
Reference in New Issue
Block a user