forked from Mirrors/openclonk
Remove if-block in Eat()
The check should be made in the object that call Eat()install-platforms
parent
e20d5e87ae
commit
2da7768a8e
|
@ -197,13 +197,10 @@ protected func CheckStuck()
|
|||
|
||||
public func Eat(object food)
|
||||
{
|
||||
if (IsWalking())
|
||||
{
|
||||
Heal(food->NutritionalValue());
|
||||
food->RemoveObject();
|
||||
Sound("Clonk::Action::Munch?");
|
||||
SetAction("Eat");
|
||||
}
|
||||
Heal(food->NutritionalValue());
|
||||
food->RemoveObject();
|
||||
Sound("Clonk::Action::Munch?");
|
||||
SetAction("Eat");
|
||||
}
|
||||
|
||||
// Called when an object was dug free.
|
||||
|
|
Loading…
Reference in New Issue