diff options
author | shennetsind <ind@henn.et> | 2013-12-15 19:28:03 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-15 19:28:03 -0200 |
commit | f6daed397dee844234cacd90d395c0b74c404598 (patch) | |
tree | 1d240f974dab6dc751cef88cca32aa8819bab99b /src/map/trade.c | |
parent | ee1290403076d39d25def09753cf20c1dd157d09 (diff) | |
download | hercules-f6daed397dee844234cacd90d395c0b74c404598.tar.gz hercules-f6daed397dee844234cacd90d395c0b74c404598.tar.bz2 hercules-f6daed397dee844234cacd90d395c0b74c404598.tar.xz hercules-f6daed397dee844234cacd90d395c0b74c404598.zip |
Replaced pc->pc_has_permission/can_give_items/can_give_bound_items with equivalent macros
Because 2/3 jumps to perform such a operation is just awful
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/trade.c')
-rw-r--r-- | src/map/trade.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/trade.c b/src/map/trade.c index f772c5faf..6f079bdd3 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -69,7 +69,7 @@ void trade_traderequest(struct map_session_data *sd, struct map_session_data *ta return; } - if (!pc->can_give_items(sd) || !pc->can_give_items(target_sd)) //check if both GMs are allowed to trade + if (!pc_can_give_items(sd) || !pc_can_give_items(target_sd)) //check if both GMs are allowed to trade { clif->message(sd->fd, msg_txt(246)); clif->tradestart(sd, 2); // GM is not allowed to trade @@ -368,7 +368,7 @@ void trade_tradeadditem(struct map_session_data *sd, short index, short amount) if( item->bound && !( item->bound == IBT_GUILD && sd->status.guild_id == target_sd->status.guild_id ) && !( item->bound == IBT_PARTY && sd->status.party_id == target_sd->status.party_id ) - && !pc->can_give_bound_items(sd) ) { + && !pc_can_give_bound_items(sd) ) { clif->message(sd->fd, msg_txt(293)); clif->tradeitemok(sd, index+2, TIO_INDROCKS); return; |