Skip to content

Commit

Permalink
Fixed bug where docking while the ECM fx was playing would not stop ir.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherCommander authored Nov 26, 2024
1 parent c33ed9f commit d4c1da5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Core/Entities/PlayerEntity.m
Original file line number Diff line number Diff line change
Expand Up @@ -3955,6 +3955,12 @@ - (void) performDockingUpdates:(OOTimeDelta)delta_t
{
[self docked]; // bookkeeping for docking
}

// if ecm visual effect is playing while docking, terminate it
if ([UNIVERSE useShaders] && [UNIVERSE ECMVisualFXEnabled] && [UNIVERSE currentPostFX] == OO_POSTFX_CRTBADSIGNAL)
{
[UNIVERSE setCurrentPostFX:[UNIVERSE colorblindMode]];
}
}


Expand Down

0 comments on commit d4c1da5

Please sign in to comment.