summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-14 19:36:05 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-06-14 19:36:05 +0000
commit7a612f8db0c03ba748a174c97e9bc2cf902d8b10 (patch)
treecdcfc314cbcb079c65dc7951dda42e983f050a71 /src/map/script.c
parentc07a09726d9e94d75786192fc671cde81dc73176 (diff)
downloadhercules-7a612f8db0c03ba748a174c97e9bc2cf902d8b10.tar.gz
hercules-7a612f8db0c03ba748a174c97e9bc2cf902d8b10.tar.bz2
hercules-7a612f8db0c03ba748a174c97e9bc2cf902d8b10.tar.xz
hercules-7a612f8db0c03ba748a174c97e9bc2cf902d8b10.zip
Added support for new carts (requires packetver 20120201 or newer). Super-Ultra-Plus thanks to Fatal Error and Judas.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16297 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index d1ff921c5..9d683850c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7748,7 +7748,10 @@ BUILDIN_FUNC(setoption)
flag = script_getnum(st,3);
else if( !option ){// Request to remove everything.
flag = 0;
- option = OPTION_CART|OPTION_FALCON|OPTION_RIDING;
+ option = OPTION_FALCON|OPTION_RIDING;
+#ifndef NEW_CARTS
+ option |= OPTION_CART;
+#endif
}
if( flag ){// Add option
if( option&OPTION_WEDDING && !battle_config.wedding_modifydisplay )