summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-02-15 15:14:13 -0200
committershennetsind <ind@henn.et>2015-02-15 15:14:13 -0200
commit102d20ae15b3382f23e4d845926282974245e99a (patch)
treeb352276c5fb9340cb97b8af90bf288da10e2835b
parent909c0644ce45945c8e3fdc5eb77ebdd1a1cb93d0 (diff)
downloadhercules-102d20ae15b3382f23e4d845926282974245e99a.tar.gz
hercules-102d20ae15b3382f23e4d845926282974245e99a.tar.bz2
hercules-102d20ae15b3382f23e4d845926282974245e99a.tar.xz
hercules-102d20ae15b3382f23e4d845926282974245e99a.zip
Follow up 909c0644ce45945c8e3fdc5eb77ebdd1a1cb93d0
No longer returns any value. Either it will succeed, or it will stop the script (at which point having a return value has no purpose) Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--doc/script_commands.txt2
-rw-r--r--src/map/script.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index e69cca6b1..54d62b045 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -5290,8 +5290,6 @@ It is always a good idea to check if the player actually has the item you want
before you use this command. If you try to delete in a position that the player
has no gear, script will be terminated with an error.
-This command will return 1 if an item was deleted and 0 otherwise.
-
---------------------------------------
//=====================================
4.1 - End of Player Item-Related Commands
diff --git a/src/map/script.c b/src/map/script.c
index 1a6289db3..401cb0757 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -7994,7 +7994,6 @@ BUILDIN(delequip)
if(i >= 0) {
pc->unequipitem(sd,i,3); //recalculate bonus
pc->delitem(sd,i,1,0,2,LOG_TYPE_SCRIPT);
- script_pushint(st,1);
return true;
}