diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-09 23:58:15 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-09 23:58:15 +0000 |
commit | be2fdb7066f39069d748a89a61f60f3b7b6f902e (patch) | |
tree | 278128beab9bf28214247bb0f84aba1d4bd50a35 /src/map/script.c | |
parent | 533ce63fe5e55aca6ebb1ca709e300aded8de775 (diff) | |
download | hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.tar.gz hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.tar.bz2 hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.tar.xz hercules-be2fdb7066f39069d748a89a61f60f3b7b6f902e.zip |
Renewal Mode DEF calc fixed (can go over 127 now), bugreport:5110
Fixed Logic Issues with r15039 script command set
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15051 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c index fb500e40e..a132f1111 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -12777,7 +12777,7 @@ BUILDIN_FUNC(explode) const char delimiter = script_getstr(st, 4)[0]; int32 id; size_t len = strlen(str); - int i = 0, j = 0, k = 0; + int i = 0, j = 0; int start; @@ -12848,7 +12848,7 @@ BUILDIN_FUNC(explode) BUILDIN_FUNC(implode) { struct script_data* data = script_getdata(st, 2); - const char *glue, *name, *temp; + const char *glue = NULL, *name, *temp; int32 glue_len = 0, array_size, id; size_t len = 0; int i, k = 0; @@ -13100,7 +13100,7 @@ BUILDIN_FUNC(sscanf){ // Issue sscanf for each parameter *buf = 0; q = format; - while(p = strchr(q, '%')){ + while((p = strchr(q, '%'))){ if(p!=q){ strncat(buf, q, (size_t)(p-q)); q = p; @@ -13290,7 +13290,7 @@ BUILDIN_FUNC(replacestr) break; } } else { - if((i + f) > inputlen || input[i + f] != find[f] && TOUPPER(input[i+f]) != TOUPPER(find[f])) { + if(((i + f) > inputlen || input[i + f] != find[f]) && TOUPPER(input[i+f]) != TOUPPER(find[f])) { StringBuf_Printf(&output, "%c", input[i]); break; } @@ -13353,7 +13353,7 @@ BUILDIN_FUNC(countstr) break; } } else { - if((i + f) > inputlen || input[i + f] != find[f] && TOUPPER(input[i+f]) != TOUPPER(find[f])) { + if(((i + f) > inputlen || input[i + f] != find[f]) && TOUPPER(input[i+f]) != TOUPPER(find[f])) { break; } } |