summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-23 01:51:17 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-23 01:51:17 +0300
commitfe39570810969993f51a0ff6045d0a5d4397a5e5 (patch)
tree6d9641f625fdee333143934c0251cfa0dd870bd3 /src/being.h
parentcff9e8d8f4bd6b678ad420c9e17eff729eecae4d (diff)
downloadManaVerse-fe39570810969993f51a0ff6045d0a5d4397a5e5.tar.gz
ManaVerse-fe39570810969993f51a0ff6045d0a5d4397a5e5.tar.bz2
ManaVerse-fe39570810969993f51a0ff6045d0a5d4397a5e5.tar.xz
ManaVerse-fe39570810969993f51a0ff6045d0a5d4397a5e5.zip
Show speach messages variable time, depend on message size.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h5
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.