From 6f96f2dea64de97bd5a16a146c8ce943b01563de Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 9 Mar 2007 00:10:06 +0000 Subject: - Made conv_str return const char* since the script engine screws up if you mess with the position of the terminator on the received string. - Because of this, many functions that handled the return of conv_str need to be changed, I haven't finished doing the conversion process because I must go already, if someone else can continue, please do so (I will resume work on this in ~5 hours git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9978 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/intif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/intif.c') diff --git a/src/map/intif.c b/src/map/intif.c index d53d6b8f2..1f7a0657e 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -129,7 +129,7 @@ int intif_rename(struct map_session_data *sd, int type, char *name) } // GMメッセージを送信 -int intif_GMmessage(char* mes,int len,int flag) +int intif_GMmessage(const char* mes,int len,int flag) { int lp = (flag&0x10) ? 8 : 4; @@ -152,7 +152,7 @@ int intif_GMmessage(char* mes,int len,int flag) return 0; } -int intif_announce(char* mes,int len, unsigned long color, int flag) +int intif_announce(const char* mes,int len, unsigned long color, int flag) { // Send to the local players if(color == 0xFE000000) // This is main chat message [LuzZza] -- cgit v1.2.3-60-g2f50