Removed GetConstructionDirection()

Felix Wagner 2012-05-13 20:54:24 +01:00
parent 0729c4577f
commit f77b4134b4
2 changed files with 0 additions and 19 deletions

View File

@ -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;
}

View File

@ -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, ...);
}