diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-23 01:51:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-23 01:51:17 +0300 |
commit | fe39570810969993f51a0ff6045d0a5d4397a5e5 (patch) | |
tree | 6d9641f625fdee333143934c0251cfa0dd870bd3 /src/being.h | |
parent | cff9e8d8f4bd6b678ad420c9e17eff729eecae4d (diff) | |
download | manaplus-fe39570810969993f51a0ff6045d0a5d4397a5e5.tar.gz manaplus-fe39570810969993f51a0ff6045d0a5d4397a5e5.tar.bz2 manaplus-fe39570810969993f51a0ff6045d0a5d4397a5e5.tar.xz manaplus-fe39570810969993f51a0ff6045d0a5d4397a5e5.zip |
Show speach messages variable time, depend on message size.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/being.h b/src/being.h index 91cafa69a..04cee8bcc 100644 --- a/src/being.h +++ b/src/being.h @@ -50,7 +50,8 @@ #define STATUS_EFFECTS 32 #define SPEECH_TIME 500 -#define SPEECH_MAX_TIME 1000 +#define SPEECH_MIN_TIME 200 +#define SPEECH_MAX_TIME 800 class AnimatedSprite; class BeingCacheEntry; @@ -239,7 +240,7 @@ class Being : public ActorSprite, public ConfigListener * @param text The text that should appear. * @param time The amount of time the text should stay in milliseconds. */ - void setSpeech(const std::string &text, int time = 500); + void setSpeech(const std::string &text, int time = 0); /** * Puts a damage bubble above this being. |