diff options
author | Haru <haru@dotalux.com> | 2013-09-17 01:50:28 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2013-09-17 01:50:28 +0200 |
commit | e38d423d76d8e2c8001eade66a4aceca92de15c0 (patch) | |
tree | d3fff2c3b49035b1410036798f67667bd44cca21 /src/map/script.c | |
parent | 8fb81341feedb5d00175d83e816f4d2ec2d4eb36 (diff) | |
download | hercules-e38d423d76d8e2c8001eade66a4aceca92de15c0.tar.gz hercules-e38d423d76d8e2c8001eade66a4aceca92de15c0.tar.bz2 hercules-e38d423d76d8e2c8001eade66a4aceca92de15c0.tar.xz hercules-e38d423d76d8e2c8001eade66a4aceca92de15c0.zip |
Fixed bugreport:7710
Follow-up to eb10f35. Thanks to bgamez23
http://hercules.ws/board/tracker/issue-7710-bc-blue-announce-bug/
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c index 3ea26694e..bf8e81cbd 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -9170,7 +9170,7 @@ BUILDIN(announce) { if (fontColor) intif->broadcast2(mes, (int)strlen(mes)+1, strtol(fontColor, (char **)NULL, 0), fontType, fontSize, fontAlign, fontY); else - intif->broadcast(mes, (int)strlen(mes)+1, flag&(BC_SOURCE_MASK|BC_TARGET_MASK)); + intif->broadcast(mes, (int)strlen(mes)+1, flag&BC_COLOR_MASK); } return true; } @@ -9247,7 +9247,7 @@ BUILDIN(mapannounce) return true; iMap->foreachinmap(buildin_announce_sub, m, BL_PC, - mes, strlen(mes)+1, flag&(BC_SOURCE_MASK|BC_TARGET_MASK), fontColor, fontType, fontSize, fontAlign, fontY); + mes, strlen(mes)+1, flag&BC_COLOR_MASK, fontColor, fontType, fontSize, fontAlign, fontY); return true; } /*========================================== @@ -9272,7 +9272,7 @@ BUILDIN(areaannounce) return true; iMap->foreachinarea(buildin_announce_sub, m, x0, y0, x1, y1, BL_PC, - mes, strlen(mes)+1, flag&(BC_SOURCE_MASK|BC_TARGET_MASK), fontColor, fontType, fontSize, fontAlign, fontY); + mes, strlen(mes)+1, flag&BC_COLOR_MASK, fontColor, fontType, fontSize, fontAlign, fontY); return true; } @@ -16139,7 +16139,7 @@ BUILDIN(instance_announce) { for( i = 0; i < instances[instance_id].num_map; i++ ) iMap->foreachinmap(buildin_announce_sub, instances[instance_id].map[i], BL_PC, - mes, strlen(mes)+1, flag&(BC_SOURCE_MASK|BC_TARGET_MASK), fontColor, fontType, fontSize, fontAlign, fontY); + mes, strlen(mes)+1, flag&BC_COLOR_MASK, fontColor, fontType, fontSize, fontAlign, fontY); return true; } |