Skip to content

Commit

Permalink
Fixing bug where postFXs don't stop upon death - act 2
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherCommander authored Nov 26, 2024
1 parent cb22369 commit 9f79b90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Core/Universe.m
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,15 @@ - (void) setCurrentPostFX: (int) newCurrentPostFX
_currentPostFX = newCurrentPostFX;
}


- (void) terminatePostFX:(int)postFX
{
if ([self currentPostFX] == postFX)
{
[self setCurrentPostFX:[self colorblindMode]];
}
}

- (int) nextColorblindMode:(int) index
{
if (++index > OO_POSTFX_COLORBLINDNESS_TRITAN)
Expand Down

0 comments on commit 9f79b90

Please sign in to comment.