forked from Mirrors/openclonk
Steam engine: Reduced duplicate code
parent
f0a1e41ac2
commit
514eae0102
|
@ -63,7 +63,7 @@ public func ContentsCheck()
|
|||
return;
|
||||
|
||||
// If there is fuel available let the network know.
|
||||
if (fuel_amount > 0 || FindObject(Find_Container(this), Find_Func("IsFuel")))
|
||||
if (fuel_amount > 0 || GetFuelContents())
|
||||
RegisterPowerProduction(SteamEngine_produced_power);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue