diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index d0af3b8c0..3760e75cf 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -1201,7 +1201,7 @@ unsigned char* parse_subexpr(unsigned char *p,int limit) }
tmpp=(char *) p;
if((op=C_NEG,*p=='-') || (op=C_LNOT,*p=='!') || (op=C_NOT,*p=='~')){
- p=parse_subexpr(p+1,100);
+ p=parse_subexpr(p+1,8);
add_scriptc(op);
} else
p=parse_simpleexpr(p);
@@ -1211,7 +1211,7 @@ unsigned char* parse_subexpr(unsigned char *p,int limit) (op=C_MUL,opl=7,len=1,*p=='*') ||
(op=C_DIV,opl=7,len=1,*p=='/') ||
(op=C_MOD,opl=7,len=1,*p=='%') ||
- (op=C_FUNC,opl=8,len=1,*p=='(') ||
+ (op=C_FUNC,opl=9,len=1,*p=='(') ||
(op=C_LAND,opl=1,len=2,*p=='&' && p[1]=='&') ||
(op=C_AND,opl=5,len=1,*p=='&') ||
(op=C_LOR,opl=0,len=2,*p=='|' && p[1]=='|') ||
|