Replaced GetTerrainDef with the global Terrains array.
This commit is contained in:
parent
8a61badcad
commit
421c40e929
6 changed files with 3 additions and 15 deletions
|
|
@ -943,12 +943,7 @@ FTerrainDef *GetFloorTerrain_S(const sector_t* sec, int pos)
|
|||
return &Terrains[GetTerrain(sec, pos)];
|
||||
}
|
||||
|
||||
FTerrainDef *GetTerrainDef(const unsigned int num)
|
||||
{
|
||||
return (num >= 0 && num < Terrains.Size()) ? &Terrains[num] : nullptr;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
//=====================================================================================
|
||||
//
|
||||
//
|
||||
//=====================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue