diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 2087b6e0b..287cc3ecd 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -420,9 +420,12 @@ void Being::setSpeech(const std::string &text, const std::string &channel, if (mSpeech.empty()) return; - const size_t sz = mSpeech.size(); - if (!time && sz < 200) - time = static_cast<int>(SPEECH_TIME - 300 + (3 * sz)); + if (!time) + { + const size_t sz = mSpeech.size(); + if (sz < 200) + time = static_cast<int>(SPEECH_TIME - 300 + (3 * sz)); + } if (time < static_cast<int>(SPEECH_MIN_TIME)) time = static_cast<int>(SPEECH_MIN_TIME); |