summaryrefslogtreecommitdiff
path: root/src/actormanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-10 14:29:17 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-10 14:29:17 +0300
commit69eed0d99caea86486206f8d45705827f7a6fe19 (patch)
tree426c59b2e6cbf7724ad4a44d00df6c59fa1e0471 /src/actormanager.cpp
parentad5bfca7d5df9201e5460e68ca149674bac5ac2c (diff)
downloadplus-69eed0d99caea86486206f8d45705827f7a6fe19.tar.gz
plus-69eed0d99caea86486206f8d45705827f7a6fe19.tar.bz2
plus-69eed0d99caea86486206f8d45705827f7a6fe19.tar.xz
plus-69eed0d99caea86486206f8d45705827f7a6fe19.zip
Add mouse move simulation. After char id to name mapping received, simulate mouse move.
Diffstat (limited to 'src/actormanager.cpp')
-rw-r--r--src/actormanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/actormanager.cpp b/src/actormanager.cpp
index fd7f51368..53f8c5a6e 100644
--- a/src/actormanager.cpp
+++ b/src/actormanager.cpp
@@ -29,6 +29,7 @@
#include "being/playerinfo.h"
#include "being/playerrelations.h"
+#include "gui/sdlinput.h"
#include "gui/viewport.h"
#include "gui/widgets/tabs/chat/chattab.h"
@@ -2000,6 +2001,11 @@ void ActorManager::addChar(const int32_t id,
const std::string &name)
{
mChars[id] = name;
+
+ if (!guiInput)
+ return;
+
+ guiInput->simulateMouseMove();
}
#endif