summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-04-28 16:26:34 +0100
committerDavid Athay <ko2fan@gmail.com>2009-04-28 16:26:34 +0100
commitc6ecbbecfeffe935a77bd79754cb59fbd1446a3e (patch)
tree452629d1f366c71104a91eec53777bc6474a5188 /src/net
parenta61c874163985efd6f293ac10f0140deeeb22a20 (diff)
downloadmana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.tar.gz
mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.tar.bz2
mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.tar.xz
mana-c6ecbbecfeffe935a77bd79754cb59fbd1446a3e.zip
Made map non-resizable. Stopped emote spamming.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/ea/beinghandler.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp
index 4b61ec61..b6eab2c7 100644
--- a/src/net/ea/beinghandler.cpp
+++ b/src/net/ea/beinghandler.cpp
@@ -329,7 +329,11 @@ void BeingHandler::handleMessage(MessageIn &msg)
}
if (player_relations.hasPermission(dstBeing, PlayerRelation::EMOTE))
- dstBeing->setEmote(msg.readInt8(), EMOTION_TIME);
+ {
+ // only set emote if one doesnt already exist
+ if (!dstBeing->mEmotion)
+ dstBeing->setEmote(msg.readInt8(), EMOTION_TIME);
+ }
break;