aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorCrystalwarrior <varsash@gmail.com>2019-09-14 19:38:56 +0300
committerCrystalwarrior <varsash@gmail.com>2019-09-14 19:38:56 +0300
commit51c97ad51ce564ab400f5333eaad75b1fb2e5461 (patch)
tree3eebe00721c27cc18a7a6b5a8e21754cecd7e274 /src/courtroom.cpp
parentf225df6f19aa68789ba702fa298db8675741a495 (diff)
Allow [Time] to be blank for pre-anims to not be required to use it
play_talking and play_idle reduced in useless code
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 477f3955..47e3a0e7 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2049,8 +2049,7 @@ void Courtroom::play_preanim(bool noninterrupting)
sfx_delay_timer->start(sfx_delay);
QString anim_to_find = ao_app->get_image_suffix(ao_app->get_character_path(f_char, f_preanim));
- if (!file_exists(anim_to_find) ||
- preanim_duration < 0)
+ if (!file_exists(anim_to_find))
{
if (noninterrupting)
anim_state = 4;