summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2011-04-11 09:57:55 -0600
committerJared Adams <jaxad0127@gmail.com>2011-04-11 09:59:40 -0600
commitd30a53bf394079f2286fcf1faa8932d0becc2980 (patch)
tree57ac371a47e25888aeb60ea599bb999027b671f3
parent15b78c6b8a1ae17664de0a40dc43aac7645397f0 (diff)
downloadmana-d30a53bf394079f2286fcf1faa8932d0becc2980.tar.gz
mana-d30a53bf394079f2286fcf1faa8932d0becc2980.tar.bz2
mana-d30a53bf394079f2286fcf1faa8932d0becc2980.tar.xz
mana-d30a53bf394079f2286fcf1faa8932d0becc2980.zip
Adjust action timer to something reasonable
1 action per second was annoyingly slow. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Yohann Ferreira
-rw-r--r--src/localplayer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 4a03c841..d710a51f 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -105,8 +105,8 @@ LocalPlayer::~LocalPlayer()
void LocalPlayer::logic()
{
- // Actions are allowed once per second
- if (get_elapsed_time(mLastAction) >= 1000)
+ // Actions are allowed at 5.5 per second
+ if (get_elapsed_time(mLastAction) >= 182)
mLastAction = -1;
// Show XP messages