summaryrefslogtreecommitdiff
path: root/src/map/trade.h
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-01 14:55:35 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-10-01 14:55:35 +0000
commit41951f3f6be59e77117a5332c3be6cca92cedf90 (patch)
treef10e689bca28d2265b14286c263f841e3f910f30 /src/map/trade.h
parent3a9351dbca5aaa24e614a4d15f7399efd8386e07 (diff)
downloadhercules-41951f3f6be59e77117a5332c3be6cca92cedf90.tar.gz
hercules-41951f3f6be59e77117a5332c3be6cca92cedf90.tar.bz2
hercules-41951f3f6be59e77117a5332c3be6cca92cedf90.tar.xz
hercules-41951f3f6be59e77117a5332c3be6cca92cedf90.zip
* Fixed various trading/vending glitches
- fixed vending_tax not working at all (integer division in r10182) - undid change from r8273 where pc_getzeny() treated zeny overflow as an error condition; officially, the value is just bounded to MAX_ZENY - fixed stupid code that, instead of properly checking and filtering invalid items during shop setup, opted to 'hide' these items from the vending list instead... - removed some custom error message packets related to vending - fixed a glitch where the server would open a shop with no items when all entered items were tagged as invalid - split zeny handling from trade_tradeadditem() into a separate func (trade_tradeaddzeny()) - removed loads of redundant code from vending.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11344 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.h')
-rw-r--r--src/map/trade.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/trade.h b/src/map/trade.h
index cdcae7492..724ed2253 100644
--- a/src/map/trade.h
+++ b/src/map/trade.h
@@ -10,6 +10,7 @@ struct map_session_data;
void trade_traderequest(struct map_session_data *sd, struct map_session_data *target_sd);
void trade_tradeack(struct map_session_data *sd,int type);
void trade_tradeadditem(struct map_session_data *sd,int index,int amount);
+void trade_tradeaddzeny(struct map_session_data *sd,int amount);
void trade_tradeok(struct map_session_data *sd);
void trade_tradecancel(struct map_session_data *sd);
void trade_tradecommit(struct map_session_data *sd);