Removed the hardcoded limit for numeric npc input boxes (bugreport:811)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12074 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
1859b5e45a
commit
f96f0d27a9
@ -5,6 +5,7 @@ IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
|||||||
|
|
||||||
|
|
||||||
2008/01/14
|
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
|
* Applied a temp patch to make some npc-executed atcommands work again
|
||||||
* Added support for right-click-gm-menu kicking NPC objects [ultramage]
|
* Added support for right-click-gm-menu kicking NPC objects [ultramage]
|
||||||
* Fixed dangling pointer crashes when bleeding or Deadly poison kills a
|
* Fixed dangling pointer crashes when bleeding or Deadly poison kills a
|
||||||
|
@ -4667,16 +4667,10 @@ BUILDIN_FUNC(input)
|
|||||||
{ // take received text/value and store it in the designated variable
|
{ // take received text/value and store it in the designated variable
|
||||||
sd->state.menu_or_input = 0;
|
sd->state.menu_or_input = 0;
|
||||||
if( postfix == '$' )
|
if( postfix == '$' )
|
||||||
{
|
|
||||||
set_reg(st,sd,num,name,(void*)sd->npc_str,script_getref(st,2));
|
set_reg(st,sd,num,name,(void*)sd->npc_str,script_getref(st,2));
|
||||||
}
|
|
||||||
else
|
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));
|
set_reg(st,sd,num,name,(void*)sd->npc_amount,script_getref(st,2));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user