aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authoriamgoofball <iamgoofball@gmail.com>2019-01-21 15:45:51 -0800
committeriamgoofball <iamgoofball@gmail.com>2019-01-21 15:45:51 -0800
commita7a614482e379ad13f8e0ca1e7f3e31c33bb1c21 (patch)
treef3c938a31e9697183ab5fd0c43567f4a1c6a331a /src/courtroom.cpp
parentdebd386a7176327d481470621a7a3a65cd715f2e (diff)
final commit
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index a097444f..537558ff 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -1752,6 +1752,8 @@ void Courtroom::handle_chatmessage_2()
void Courtroom::doScreenShake()
{
+ if(!ao_app->is_shakeandflash_enabled())
+ return;
screenshake_group = new QParallelAnimationGroup;
screenshake_animation = new QPropertyAnimation(ui_viewport, "pos", this);
chatbox_screenshake_animation = new QPropertyAnimation(ui_vp_chatbox, "pos", this);
@@ -2197,6 +2199,8 @@ void Courtroom::realization_done()
void Courtroom::doRealization()
{
+ if(!ao_app->is_shakeandflash_enabled())
+ return;
realization_timer->start(60);
ui_vp_realization->show();