summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-21 03:14:41 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-21 03:14:41 +0000
commit316b68609dad823f0dee0abf50726d495b6fdda5 (patch)
treed067520c374e50d2d2b8b5f00e09af85dee90012 /src
parentd2d106ff5635e8cb091f5f582dacf0a82b1fd695 (diff)
downloadhercules-316b68609dad823f0dee0abf50726d495b6fdda5.tar.gz
hercules-316b68609dad823f0dee0abf50726d495b6fdda5.tar.bz2
hercules-316b68609dad823f0dee0abf50726d495b6fdda5.tar.xz
hercules-316b68609dad823f0dee0abf50726d495b6fdda5.zip
- readded the >=0x81 equivalent until I figure out where the script engine is 'being naughty' O.o
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9547 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index e13edd1c4..e8aea1fd7 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -502,8 +502,12 @@ static const char *skip_word(const char *p)
//# Changing from unsigned char to signed char makes p never be able to go above 0x81, but what IS 0x81 for? [Skotlex]
//# It's for multibyte encodings like Shift-JIS. Unfortunately this can be problematic for singlebyte encodings.
// Using (*p)>>7 would yield the appropriate result but it's better to restrict words to ASCII characters only. [FlavioJS]
- while( ISALNUM(*p) || *p == '_' )
- p++;
+ while( ISALNUM(*p) || *p == '_' || (*p)>>7 )
+ {
+ if( (*p)>>7 ) // readded the >=0x81 equivalent until I figure out where the script engine is 'being naughty' O.o [FlavioJS]
+ ++p;
+ ++p;
+ }
// postfix
if(*p=='$') p++; // •¶Žš—ñ•Ï”