From 41951f3f6be59e77117a5332c3be6cca92cedf90 Mon Sep 17 00:00:00 2001 From: ultramage Date: Mon, 1 Oct 2007 14:55:35 +0000 Subject: * 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 --- src/map/vending.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/map/vending.h') 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_ */ -- cgit v1.2.3-70-g09d2