forked from Mirrors/openclonk
MineRescue: Goal checks whether elevator can move, not whether it does move
parent
6d688f8d23
commit
e0b977c88d
|
@ -24,7 +24,8 @@ public func SetTarget(object target_)
|
|||
// The goal is fulfilled if the target has been supplied with energy.
|
||||
public func IsFulfilled()
|
||||
{
|
||||
return target->CurrentlyHasPower();
|
||||
//return target->CurrentlyHasPower();
|
||||
return target->IsPowerAvailable(target->GetNeededPower());
|
||||
}
|
||||
|
||||
// Shows or hides a message window with information.
|
||||
|
|
Loading…
Reference in New Issue