diff options
author | Haru <haru@dotalux.com> | 2015-06-02 02:16:55 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-06-02 02:22:51 +0200 |
commit | d66cc50af6d781d179f46ae67d74bf26bf5914e5 (patch) | |
tree | ec129bc522ea712eddecc80f9e5697b9bba7d88e /src/map/channel.c | |
parent | ad958235cfc56b86da89bdc2aa1e5155b0c006a1 (diff) | |
download | hercules-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/channel.c')
-rw-r--r-- | src/map/channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/channel.c b/src/map/channel.c index 58ff98c2b..7b9dce4ea 100644 --- a/src/map/channel.c +++ b/src/map/channel.c @@ -258,7 +258,7 @@ void channel_send(struct channel_data *chan, struct map_session_data *sd, const if (sd && chan->msg_delay != 0 && DIFF_TICK(sd->hchsysch_tick + chan->msg_delay*1000, timer->gettick()) > 0 && !pc_has_permission(sd, PC_PERM_HCHSYS_ADMIN)) { - clif->colormes(sd->fd,COLOR_RED,msg_sd(sd,1455)); + clif->messagecolor_self(sd->fd, COLOR_RED, msg_sd(sd,1455)); return; } else if (sd) { snprintf(message, 150, "[ #%s ] %s : %s",chan->name,sd->status.name, msg); @@ -352,7 +352,7 @@ enum channel_operation_status channel_join(struct channel_data *chan, struct map } else { sprintf(output, msg_sd(sd,1403), chan->name); // You're now in the '%s' channel } - clif->colormes(sd->fd, COLOR_DEFAULT, output); + clif->messagecolor_self(sd->fd, COLOR_DEFAULT, output); } if (chan->type == HCS_TYPE_ALLY) { |