summaryrefslogtreecommitdiff
path: root/src/map/trade.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-05-23 15:14:29 -0700
committerBen Longbons <b.r.longbons@gmail.com>2013-05-23 19:12:48 -0700
commit87218e07b2bc89593eae1cb4abe859cd1a7eaa0f (patch)
tree9343c393ddebf50086fdef8f2a4668781e4afd66 /src/map/trade.cpp
parent543e4b419239f37321bc5a224d56773d1fe6ebfe (diff)
downloadtmwa-87218e07b2bc89593eae1cb4abe859cd1a7eaa0f.tar.gz
tmwa-87218e07b2bc89593eae1cb4abe859cd1a7eaa0f.tar.bz2
tmwa-87218e07b2bc89593eae1cb4abe859cd1a7eaa0f.tar.xz
tmwa-87218e07b2bc89593eae1cb4abe859cd1a7eaa0f.zip
Make block_list a base class
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 13f7a4d..ba789c3 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.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))
+ 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))
{
clif_tradestart(sd, 0); //too far
}