Replaced GetTerrainDef with the global Terrains array.

This commit is contained in:
Major Cooke 2022-02-22 09:32:08 -06:00 committed by Christoph Oelckers
commit 421c40e929
6 changed files with 3 additions and 15 deletions

View file

@ -477,13 +477,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Sector, GetFloorTerrain, GetFloorTerrain_S)
ACTION_RETURN_POINTER(GetFloorTerrain_S(self, pos));
}
DEFINE_ACTION_FUNCTION_NATIVE(_Sector, GetTerrainDef, GetTerrainDef)
{
PARAM_SELF_STRUCT_PROLOGUE(sector_t);
PARAM_UINT(floorterrain);
ACTION_RETURN_POINTER(GetTerrainDef(floorterrain));
}
DEFINE_ACTION_FUNCTION_NATIVE(_Sector, CheckPortalPlane, CheckPortalPlane)
{
PARAM_SELF_STRUCT_PROLOGUE(sector_t);