Skip to content

Commit

Permalink
Merge pull request #645 from PlanetariumWSD/master
Browse files Browse the repository at this point in the history
 Add options.ini flag to disable warp_post_processor, a workaround for issue #636
  • Loading branch information
daid authored May 18, 2019
2 parents 62a0fac + 229d1ed commit eb08911
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/screenComponents/indicatorOverlays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "playerInfo.h"
#include "gameGlobalInfo.h"
#include "main.h"
#include "preferenceManager.h"

#include "gui/gui2_overlay.h"
#include "gui/gui2_label.h"
Expand Down Expand Up @@ -84,11 +85,11 @@ void GuiIndicatorOverlays::onDraw(sf::RenderTarget& window)
}else{
glitchPostProcessor->enabled = false;
}
if (my_spaceship->current_warp > 0.0)
if (my_spaceship->current_warp > 0.0 && PreferencesManager::get("warp_post_processor_disable").toInt() != 1)
{
warpPostProcessor->enabled = true;
warpPostProcessor->setUniform("amount", my_spaceship->current_warp * 0.01);
}else if (my_spaceship->jump_delay > 0.0 && my_spaceship->jump_delay < 2.0)
}else if (my_spaceship->jump_delay > 0.0 && my_spaceship->jump_delay < 2.0 && PreferencesManager::get("warp_post_processor_disable").toInt() != 1)
{
warpPostProcessor->enabled = true;
warpPostProcessor->setUniform("amount", (2.0 - my_spaceship->jump_delay) * 0.1);
Expand Down

0 comments on commit eb08911

Please sign in to comment.