summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-02 21:38:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-02 21:38:40 +0300
commitef7add5a8bd69877515e511370134e448556d49d (patch)
tree713e05ba9cfb7f7c783e8ba061e2ad80a0222fe7 /src/resources
parente8f92c8a476c35f76212ccaccbbb55901a49058e (diff)
downloadplus-ef7add5a8bd69877515e511370134e448556d49d.tar.gz
plus-ef7add5a8bd69877515e511370134e448556d49d.tar.bz2
plus-ef7add5a8bd69877515e511370134e448556d49d.tar.xz
plus-ef7add5a8bd69877515e511370134e448556d49d.zip
Prevent emotes mess if in client data too many emotes.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/emotedb.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/resources/emotedb.cpp b/src/resources/emotedb.cpp
index c6126a57b..07e192cd4 100644
--- a/src/resources/emotedb.cpp
+++ b/src/resources/emotedb.cpp
@@ -67,6 +67,10 @@ void EmoteDB::load()
continue;
int id = XML::getProperty(emoteNode, "id", -1);
+ // skip hight images
+ if (id > 19)
+ continue;
+
if (id == -1)
{
logger->log1("Emote Database: Emote with missing ID in "
@@ -104,7 +108,6 @@ void EmoteDB::load()
mLastEmote = id;
}
-
XML::Document doc2("graphics/sprites/manaplus_emotes.xml");
rootNode = doc2.rootNode();