Structure: Allow basement override

Structures created basements with ID Basement, now the basement type can
be defined with the callback GetBasementID (default value is Basement)
install-platforms
Mark 2017-07-22 23:44:00 +02:00
parent ee4ac9e825
commit 62ff92aa97
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ public func IsStructureWithoutBasement()
public func AddBasement()
{
var offset = this->~GetBasementOffset() ?? [0, 0];
var basement = CreateObject(Basement, offset[0], GetBottom() + 4 + offset[1]);
var basement = CreateObject(this->~GetBasementID() ?? Basement, offset[0], GetBottom() + 4 + offset[1]);
basement->SetParent(this);
return;
}