summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 12:01:58 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-14 12:01:58 +0000
commitf2f7c1838a3d05d9ecbea5a23e0b33f0f177e411 (patch)
treececf60f23a1092f813742f188077d36614ed6972
parent6aab03b220d3d65be71f56b4ff77ac4fa261571b (diff)
downloadhercules-f2f7c1838a3d05d9ecbea5a23e0b33f0f177e411.tar.gz
hercules-f2f7c1838a3d05d9ecbea5a23e0b33f0f177e411.tar.bz2
hercules-f2f7c1838a3d05d9ecbea5a23e0b33f0f177e411.tar.xz
hercules-f2f7c1838a3d05d9ecbea5a23e0b33f0f177e411.zip
Removed the hardcoded limit for numeric npc input boxes (bugreport:811)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12074 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt1
-rw-r--r--src/map/script.c6
2 files changed, 1 insertions, 6 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index df3f66a22..4cd303cd7 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2008/01/14
+ * Removed the hardcoded limit for numeric npc input boxes (bugreport:811)
* Applied a temp patch to make some npc-executed atcommands work again
* Added support for right-click-gm-menu kicking NPC objects [ultramage]
* Fixed dangling pointer crashes when bleeding or Deadly poison kills a
diff --git a/src/map/script.c b/src/map/script.c
index f63be3fb5..b0c393afe 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -4667,15 +4667,9 @@ BUILDIN_FUNC(input)
{ // take received text/value and store it in the designated variable
sd->state.menu_or_input = 0;
if( postfix == '$' )
- {
set_reg(st,sd,num,name,(void*)sd->npc_str,script_getref(st,2));
- }
else
- {
- // limit the input to a non-negative value smaller than 'vending_max_value' (for scripts that didn't check this)
- sd->npc_amount = cap_value(sd->npc_amount, 0, battle_config.vending_max_value);
set_reg(st,sd,num,name,(void*)sd->npc_amount,script_getref(st,2));
- }
}
return 0;
}