summaryrefslogtreecommitdiff
path: root/src/map/trade.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/trade.cpp')
-rw-r--r--src/map/trade.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/trade.cpp b/src/map/trade.cpp
index 6e81602..13f7a4d 100644
--- a/src/map/trade.cpp
+++ b/src/map/trade.cpp
@@ -45,11 +45,11 @@ void trade_traderequest(struct map_session_data *sd, int target_id)
}
else
{
- if (sd->bl.m != target_sd->bl.m
- || (sd->bl.x - target_sd->bl.x <= -5
- || sd->bl.x - target_sd->bl.x >= 5)
- || (sd->bl.y - target_sd->bl.y <= -5
- || sd->bl.y - target_sd->bl.y >= 5))
+ if (sd->bl.bl_m != target_sd->bl.bl_m
+ || (sd->bl.bl_x - target_sd->bl.bl_x <= -5
+ || sd->bl.bl_x - target_sd->bl.bl_x >= 5)
+ || (sd->bl.bl_y - target_sd->bl.bl_y <= -5
+ || sd->bl.bl_y - target_sd->bl.bl_y >= 5))
{
clif_tradestart(sd, 0); //too far
}