forked from Mirrors/openclonk
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
parent
ee4ac9e825
commit
62ff92aa97
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue