forked from Mirrors/openclonk
C4ObjectCom: Removed obsolete Object*Build
parent
78ce3da206
commit
637e69b8da
|
@ -159,11 +159,6 @@ bool ObjectActionDig(C4Object *cObj)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool ObjectActionBuild(C4Object *cObj, C4Object *target)
|
||||
{
|
||||
return cObj->SetActionByName("Build",target);
|
||||
}
|
||||
|
||||
bool ObjectActionPush(C4Object *cObj, C4Object *target)
|
||||
{
|
||||
return cObj->SetActionByName("Push",target);
|
||||
|
@ -470,16 +465,6 @@ bool ObjectComDrop(C4Object *cObj, C4Object *pThing)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool ObjectComBuild(C4Object *cObj, C4Object *pTarget)
|
||||
{
|
||||
if (!pTarget) return false;
|
||||
// Needs to be idle or walking
|
||||
if (cObj->GetAction())
|
||||
if (cObj->GetProcedure()!=DFA_WALK)
|
||||
return false;
|
||||
return ObjectActionBuild(cObj,pTarget);
|
||||
}
|
||||
|
||||
bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing) // by C4CMD_Throw
|
||||
{ // by C4CMD_Drop
|
||||
// Valid checks
|
||||
|
|
|
@ -51,7 +51,6 @@ bool ObjectActionScale(C4Object *cObj, int32_t dir);
|
|||
bool ObjectActionHangle(C4Object *cObj, int32_t dir);
|
||||
bool ObjectActionThrow(C4Object *cObj, C4Object *pThing=NULL);
|
||||
bool ObjectActionDig(C4Object *cObj);
|
||||
bool ObjectActionBuild(C4Object *cObj, C4Object *pTarget);
|
||||
bool ObjectActionPush(C4Object *cObj, C4Object *pTarget);
|
||||
bool ObjectActionCornerScale(C4Object *cObj);
|
||||
|
||||
|
@ -67,7 +66,6 @@ bool ObjectComJump(C4Object *cObj);
|
|||
bool ObjectComLetGo(C4Object *cObj, int32_t xdirf);
|
||||
bool ObjectComUp(C4Object *cObj);
|
||||
bool ObjectComDig(C4Object *cObj);
|
||||
bool ObjectComBuild(C4Object *cObj, C4Object *pTarget);
|
||||
bool ObjectComEnter(C4Object *cObj);
|
||||
bool ObjectComPutTake(C4Object *cObj, C4Object *pTarget, C4Object *pThing=NULL);
|
||||
bool ObjectComTake(C4Object *cObj, C4ID id);
|
||||
|
|
Loading…
Reference in New Issue