summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-07 21:58:40 +0000
committerdaegaladh <daegaladh@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-08-07 21:58:40 +0000
commitd7e6eb4fd35b03865c6f38907d922d74b23156ac (patch)
treed3751f6cd0ecd895f62dffc4d8754e8753caf020
parentce67450f0708a1ff805f7a270b067cb4d05e3857 (diff)
downloadhercules-d7e6eb4fd35b03865c6f38907d922d74b23156ac.tar.gz
hercules-d7e6eb4fd35b03865c6f38907d922d74b23156ac.tar.bz2
hercules-d7e6eb4fd35b03865c6f38907d922d74b23156ac.tar.xz
hercules-d7e6eb4fd35b03865c6f38907d922d74b23156ac.zip
Reverted wrong checkre() command optimization (bugreport:6426)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16599 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/script.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 7b13787ce..9ab5784c6 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -16811,48 +16811,63 @@ BUILDIN_FUNC(checkre)
case 0:
#ifdef RENEWAL
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 1:
#ifdef RENEWAL_CAST
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 2:
#ifdef RENEWAL_DROP
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 3:
#ifdef RENEWAL_EXP
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 4:
#ifdef RENEWAL_LVDMG
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 5:
#ifdef RENEWAL_CAST_VMIN
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 6:
#ifdef RENEWAL_EDP
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
case 7:
#ifdef RENEWAL_ASPD
script_pushint(st, 1);
+ #else
+ script_pushint(st, 0);
#endif
break;
default:
ShowWarning("buildin_checkre: unknown parameter.\n");
break;
}
- script_pushint(st, 0);
return 0;
}