Skip to content

Commit

Permalink
Quake: Add an option to disable screen shake
Browse files Browse the repository at this point in the history
Implements: feature request #405
  • Loading branch information
dscharrer committed May 30, 2020
1 parent 8a15c76 commit d004c6f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/game/effect/Quake.cpp
Expand Up @@ -19,6 +19,7 @@

#include "game/effect/Quake.h"

#include "core/Config.h"
#include "core/GameTime.h"
#include "game/Camera.h"
#include "math/RandomVector.h"
Expand Down Expand Up @@ -74,7 +75,11 @@ void ManageQuakeFX(Camera * cam) {
QuakeFx.intensity = 0.f;
return;
}


if(!config.video.screenShake) {
return;
}

float itmod = 1.f - (tim / QuakeFx.duration);

float periodicity = 0;
Expand Down

0 comments on commit d004c6f

Please sign in to comment.