summaryrefslogtreecommitdiff
path: root/src/map/vending.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/vending.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/vending.h')
-rw-r--r--src/map/vending.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/map/vending.h b/src/map/vending.h
index 3b247e549..e65f55e93 100644
--- a/src/map/vending.h
+++ b/src/map/vending.h
@@ -4,12 +4,13 @@
#ifndef _VENDING_H_
#define _VENDING_H_
+#include "../common/cbasetypes.h"
//#include "map.h"
struct map_session_data;
-void vending_closevending(struct map_session_data *sd);
-void vending_openvending(struct map_session_data *sd,int len,char *message,int flag,unsigned char *p);
-void vending_vendinglistreq(struct map_session_data *sd,int id);
-void vending_purchasereq(struct map_session_data *sd,int len,int id,unsigned char *p);
+void vending_closevending(struct map_session_data* sd);
+void vending_openvending(struct map_session_data* sd, const char* message, bool flag, const uint8* data, int count);
+void vending_vendinglistreq(struct map_session_data* sd, int id);
+void vending_purchasereq(struct map_session_data* sd, int id, const uint8* data, int count);
#endif /* _VENDING_H_ */