mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-06 20:39:38 +01:00
(svn r13519) -Feature[newGRF]: Implement var 63, variational action2 variable for Houses.
Or, in more simple terms, the check for the animation frame of nearby house.
This commit is contained in:
parent
8bc42a8c2f
commit
237a6f554a
@ -254,6 +254,12 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
|
|||||||
/* Land info for nearby tiles. */
|
/* Land info for nearby tiles. */
|
||||||
case 0x62: return GetNearbyTileInformation(parameter, tile);
|
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 */
|
/* Read GRF parameter */
|
||||||
case 0x7F: return GetGRFParameter(object->u.house.house_id, parameter);
|
case 0x7F: return GetGRFParameter(object->u.house.house_id, parameter);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user