diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-02 21:38:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-02 21:38:40 +0300 |
commit | ef7add5a8bd69877515e511370134e448556d49d (patch) | |
tree | 713e05ba9cfb7f7c783e8ba061e2ad80a0222fe7 | |
parent | e8f92c8a476c35f76212ccaccbbb55901a49058e (diff) | |
download | mv-ef7add5a8bd69877515e511370134e448556d49d.tar.gz mv-ef7add5a8bd69877515e511370134e448556d49d.tar.bz2 mv-ef7add5a8bd69877515e511370134e448556d49d.tar.xz mv-ef7add5a8bd69877515e511370134e448556d49d.zip |
Prevent emotes mess if in client data too many emotes.
-rw-r--r-- | src/resources/emotedb.cpp | 5 |
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(); |