From b5bcd3c54bfe30e7602a92d4b39ee15973f3c46f Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 20 Feb 2008 16:21:37 +0000 Subject: Changed pc_can_give_items() to use standard boolean logic instead of the inverted 1/0 one (bugreport:396) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12220 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/trade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/trade.c') diff --git a/src/map/trade.c b/src/map/trade.c index fa092c49c..5c063621d 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -61,7 +61,7 @@ void trade_traderequest(struct map_session_data *sd, struct map_session_data *ta } level = pc_isGM(sd); - if ( pc_can_give_items(level) || pc_can_give_items(pc_isGM(target_sd)) ) //check if both GMs are allowed to trade + if ( !pc_can_give_items(level) || !pc_can_give_items(pc_isGM(target_sd)) ) //check if both GMs are allowed to trade { clif_displaymessage(sd->fd, msg_txt(246)); clif_tradestart(sd, 2); // GM is not allowed to trade -- cgit v1.2.3-70-g09d2