summaryrefslogtreecommitdiff
path: root/src/resources/emotedb.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-04-01 22:13:39 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-04-02 20:24:42 +0200
commit9015268746ed9052a9dc83839b2834b5feeab166 (patch)
tree6516c0acb2833e27bd3911672a68d0117b818739 /src/resources/emotedb.h
parent4c7ff677593ea5a56326ec5a43814291f36bd452 (diff)
downloadmana-ea2ac965a177b8f8af3490eb400ae78db1b4a9b6.tar.gz
mana-ea2ac965a177b8f8af3490eb400ae78db1b4a9b6.tar.bz2
mana-ea2ac965a177b8f8af3490eb400ae78db1b4a9b6.tar.xz
mana-ea2ac965a177b8f8af3490eb400ae78db1b4a9b6.zip
Fixed problems with using the last emotev0.6.1
The tmwa/BeingHandler was adjusting the effect id rather than the emote id, causing it to not find the last emote (and the rest of the emotes only worked correctly because the effect ids were consecutive in the same order as the emote ids). Furthermore, the EmoteShortcutContainer refused to draw the icon for the last emote due to an off-by-one error in dealing with the 1-adjusted emote ids used by the EmoteShortcut class. Also cleaned up some old remains of a player ignore strategy that used to use the two balloon emotes (this had been their original purpose). Reviewed-by: Erik Schilling
Diffstat (limited to 'src/resources/emotedb.h')
-rw-r--r--src/resources/emotedb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/emotedb.h b/src/resources/emotedb.h
index 1324fb7e..a1e991ec 100644
--- a/src/resources/emotedb.h
+++ b/src/resources/emotedb.h
@@ -48,9 +48,9 @@ namespace EmoteDB
const Emote *get(int id);
- const int &getLast();
+ int getLast();
typedef Emotes::iterator EmotesIterator;
}
-#endif
+#endif // EMOTE_DB_H