From 66df36b0b20a5623599561b77a6225e8c8c12b72 Mon Sep 17 00:00:00 2001 From: icxbb-xx Date: Sun, 9 Nov 2014 10:37:46 +0700 Subject: [PATCH] Fixed compile warning (follow-up to 04a1173) - Special Thank @tmav94 --- doc/script_commands.txt | 2 +- src/map/script.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/script_commands.txt b/doc/script_commands.txt index f28728ef28..a324e03daf 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3762,7 +3762,7 @@ be seen by anyone else. --------------------------------------- -*dispbottom "",; +*dispbottom ""{,}; This command will send the given message with color into the invoking character's chat window. The color format is in RGB (0xRRGGBB). The color is diff --git a/src/map/script.c b/src/map/script.c index c24d4f8613..b6be34d44b 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13407,21 +13407,20 @@ BUILDIN_FUNC(atcommand) { * dispbottom(""{,}) * @param message * @param color Hex color default (Green) -* @author [Napster] */ BUILDIN_FUNC(dispbottom) { TBL_PC *sd=script_rid2sd(st); - int color; + int color = 0; const char *message; - message=script_getstr(st,2); + message = script_getstr(st,2); if (script_hasdata(st,3)) color = script_getnum(st,3); // if(sd) { if (script_hasdata(st,3)) - clif_messagecolor2(sd, color, message); + clif_messagecolor2(sd, color, message); // [Napster] else clif_disp_onlyself(sd, message, (int)strlen(message)); }