Fix TS harvesters getting stuck in unload graphics
when refinery is destroyed while unloading.
This commit is contained in:
@@ -48,7 +48,7 @@ namespace OpenRA.Mods.Cnc.Activities
|
|||||||
// If body.Docked wasn't set, we didn't actually dock and have to skip the undock overlay
|
// If body.Docked wasn't set, we didn't actually dock and have to skip the undock overlay
|
||||||
if (!body.Docked)
|
if (!body.Docked)
|
||||||
dockingState = DockingState.Complete;
|
dockingState = DockingState.Complete;
|
||||||
else if (spriteOverlay != null && !spriteOverlay.Visible)
|
else if (Refinery.IsInWorld && !Refinery.IsDead && spriteOverlay != null && !spriteOverlay.Visible)
|
||||||
{
|
{
|
||||||
dockingState = DockingState.Wait;
|
dockingState = DockingState.Wait;
|
||||||
spriteOverlay.Visible = true;
|
spriteOverlay.Visible = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user