summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-06-02 02:16:55 +0200
committerHaru <haru@dotalux.com>2015-06-02 02:22:51 +0200
commitd66cc50af6d781d179f46ae67d74bf26bf5914e5 (patch)
treeec129bc522ea712eddecc80f9e5697b9bba7d88e /src/map/npc.c
parentad958235cfc56b86da89bdc2aa1e5155b0c006a1 (diff)
downloadhercules-d66cc50af6d781d179f46ae67d74bf26bf5914e5.tar.gz
hercules-d66cc50af6d781d179f46ae67d74bf26bf5914e5.tar.bz2
hercules-d66cc50af6d781d179f46ae67d74bf26bf5914e5.tar.xz
hercules-d66cc50af6d781d179f46ae67d74bf26bf5914e5.zip
Re-implemented clif->colormes to accept arbitrary colors
- Due to the backward-incompatible change, clif->colormes was renamed to clif->messagecolor_self (for similarity with clif->messagecolor). The 'color' argument is now a 0xRRGGBB color rather than a color_table index. - enum clif_colors is no longer needed, but 0xRRGGBB-based constants are now provided to replace the old COLOR_* values. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index b901a2de0..ef56c7872 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1583,8 +1583,8 @@ bool npc_trader_open(struct map_session_data *sd, struct npc_data *nd) {
}
/* nothing to display, no items available */
- if( i == nd->u.scr.shop->items ) {
- clif->colormes(sd->fd,COLOR_RED, msg_sd(sd,881));
+ if (i == nd->u.scr.shop->items) {
+ clif->messagecolor_self(sd->fd, COLOR_RED, msg_sd(sd,881));
return false;
}