Fixed codepage indicators being included in NPCs' whispervars. (bugreport:4325)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14349 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Gepard 2010-06-20 20:11:13 +00:00
parent 84bbedc5e2
commit 100bb34a4f
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2010/06/20
* Fixed codepage indicators being included in NPCs' whispervars. [Gepard]
2010/06/18 2010/06/18
* Added support for NPC/PC names in 'emotion' script command. [Gepard] * Added support for NPC/PC names in 'emotion' script command. [Gepard]
2010/06/14 2010/06/14

View File

@ -9031,6 +9031,9 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
char output[256]; char output[256];
str = message; str = message;
// skip codepage indicator, if detected
if( str[0] == '|' && strlen(str) >= 4 )
str += 3;
for( i = 0; i < 10; ++i ) for( i = 0; i < 10; ++i )
{// Splits the message using '#' as separators {// Splits the message using '#' as separators
split = strchr(str,'#'); split = strchr(str,'#');