forked from Mirrors/openclonk
Removed GetConstructionDirection()
parent
0729c4577f
commit
f77b4134b4
|
@ -181,8 +181,6 @@ func CreateConstructionSite(object clonk, id structure_id, int x, int y, int dir
|
|||
|
||||
// Set owner for CreateConstruction
|
||||
SetOwner(clonk->GetOwner());
|
||||
// Save direction so the structure can ask for it
|
||||
this.constructionDirection = dir;
|
||||
// Create construction site
|
||||
var site;
|
||||
site = CreateObject(ConstructionSite, x, y, Contained()->GetOwner());
|
||||
|
@ -229,9 +227,4 @@ func CreateConstructionSite(object clonk, id structure_id, int x, int y, int dir
|
|||
// Message
|
||||
clonk->Message("$TxtConstructions$", structure_id->GetName());
|
||||
return true;
|
||||
}
|
||||
// Returns the desired direction for a construction
|
||||
func GetConstructionDirection()
|
||||
{
|
||||
return this.constructionDirection;
|
||||
}
|
|
@ -16,16 +16,4 @@ public func Damage(int change, int cause, int cause_plr)
|
|||
return RemoveObject();
|
||||
}
|
||||
return _inherited(change, cause, cause_plr);
|
||||
}
|
||||
|
||||
public func Construction(object creator)
|
||||
{
|
||||
if (creator)
|
||||
{
|
||||
// Set dir according to the direction specified by the creator.
|
||||
var dir = creator->~GetConstructionDirection();
|
||||
if (dir)
|
||||
SetDir(dir);
|
||||
}
|
||||
return _inherited(creator, ...);
|
||||
}
|
Loading…
Reference in New Issue