remove redundant shovels on Clonk construction

stable-5.1
Benjamin Herr 2010-03-23 00:03:14 +01:00
parent f83bbb5884
commit 6f92eca719
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ protected func Construction()
_inherited(...);
// shovel...
var shov = CreateObject(Shovel,0,0,GetOwner());
Collect(shov,false,2);
if (!Collect(shov,false,2))
shov->RemoveObject();
// Clonks mit Magiephysikal aus fehlerhaften Szenarien korrigieren
if (GetID () == Clonk)
if (GetPhysical ("Magic", 1))