summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-14 03:42:34 -0300
committershennetsind <ind@henn.et>2013-09-14 03:42:34 -0300
commitf1a594db1b40a5a20ec5a4af093b27c58266cba0 (patch)
treeb1e8beb0ecca04654d21e1eadda61de4cecd1227 /src/map/clif.c
parent0fd46a8156bfd9b66c2237f61e43c492c418181c (diff)
parenteb10f355f7e228b59011326a7f84da2e593affea (diff)
downloadhercules-f1a594db1b40a5a20ec5a4af093b27c58266cba0.tar.gz
hercules-f1a594db1b40a5a20ec5a4af093b27c58266cba0.tar.bz2
hercules-f1a594db1b40a5a20ec5a4af093b27c58266cba0.tar.xz
hercules-f1a594db1b40a5a20ec5a4af093b27c58266cba0.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 081260ddb..8f82141b2 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -5718,14 +5718,14 @@ void clif_displaymessage2(const int fd, const char* mes) {
/// 009a <packet len>.W <message>.?B
void clif_broadcast(struct block_list* bl, const char* mes, int len, int type, enum send_target target)
{
- int lp = type ? 4 : 0;
+ int lp = (type&BC_COLOR_MASK) ? 4 : 0;
unsigned char *buf = (unsigned char*)aMalloc((4 + lp + len)*sizeof(unsigned char));
WBUFW(buf,0) = 0x9a;
WBUFW(buf,2) = 4 + lp + len;
- if (type == 0x10) // bc_blue
+ if( type&BC_BLUE )
WBUFL(buf,4) = 0x65756c62; //If there's "blue" at the beginning of the message, game client will display it in blue instead of yellow.
- else if (type == 0x20) // bc_woe
+ else if( type&BC_WOE )
WBUFL(buf,4) = 0x73737373; //If there's "ssss", game client will recognize message as 'WoE broadcast'.
memcpy(WBUFP(buf, 4 + lp), mes, len);
clif->send(buf, WBUFW(buf,2), bl, target);
@@ -9580,8 +9580,8 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) {
if( map[sd->bl.m].flag.allowks && !map_flag_ks(sd->bl.m) ) {
char output[128];
- sprintf(output, "[ Kill Steal Protection Disable. KS is allowed in this map ]");
- clif->broadcast(&sd->bl, output, strlen(output) + 1, 0x10, SELF);
+ sprintf(output, "[ Kill Steal Protection Disabled. KS is allowed in this map ]");
+ clif->broadcast(&sd->bl, output, strlen(output) + 1, BC_BLUE, SELF);
}
iMap->iwall_get(sd); // Updates Walls Info on this Map to Client