vending input number fix from Freya ^_-
git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@225 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
dc72ae2046
commit
1ae0d8b1e1
@ -1863,12 +1863,14 @@ int buildin_input(struct script_state *st)
|
||||
}else{
|
||||
|
||||
// commented by Lupus (check Value Number Input fix in clif.c)
|
||||
// readded by Yor: set ammount to 0 instead of cancel trade.
|
||||
// ** Fix by fritz :X keeps people from abusing old input bugs
|
||||
if(sd->npc_amount < 0) //** If input amount is less then 0
|
||||
{
|
||||
clif_tradecancelled(sd); // added "Deal has been cancelled" message by Valaris
|
||||
buildin_close(st); //** close
|
||||
}
|
||||
if (sd->npc_amount < 0) { //** If input amount is less then 0
|
||||
// clif_tradecancelled(sd); // added "Deal has been cancelled" message by Valaris
|
||||
// buildin_close(st); // ** close
|
||||
sd->npc_amount = 0;
|
||||
} else if (sd->npc_amount > battle_config.vending_max_value) // new fix by Yor
|
||||
sd->npc_amount = battle_config.vending_max_value;
|
||||
|
||||
// <20>”’l
|
||||
if(st->end>st->start+2){ // ˆø<CB86>”1ŒÂ
|
||||
@ -1887,7 +1889,6 @@ int buildin_input(struct script_state *st)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*==========================================
|
||||
*
|
||||
*------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user