diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_house.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 4ece1f1ac..c794f5233 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -254,6 +254,12 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte /* Land info for nearby tiles. */ case 0x62: return GetNearbyTileInformation(parameter, tile); + /* Current animation frame of nearby house tiles */ + case 0x63: { + TileIndex testtile = GetNearbyTile(parameter, tile); + return IsTileType(testtile, MP_HOUSE) ? GetHouseAnimationFrame(testtile) : 0; + } + /* Read GRF parameter */ case 0x7F: return GetGRFParameter(object->u.house.house_id, parameter); } |