summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2013-06-17 21:27:58 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2013-06-17 21:27:58 +0800
commit6f4b110965db43f49507e9492d29c0745d145760 (patch)
tree89ec484a22e9f5de2c83c1a0016db92367c12690 /src/map/clif.c
parentbfa7971e86fd7dc42b5668fb5ba1469e8a62c22f (diff)
downloadhercules-6f4b110965db43f49507e9492d29c0745d145760.tar.gz
hercules-6f4b110965db43f49507e9492d29c0745d145760.tar.bz2
hercules-6f4b110965db43f49507e9492d29c0745d145760.tar.xz
hercules-6f4b110965db43f49507e9492d29c0745d145760.zip
Fixed Bug#7247
-while vending you can now change equipments. Updated sc_config.txt notes. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9fae03ef0..73d4b6666 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -10573,7 +10573,7 @@ void clif_parse_DropItem(int fd, struct map_session_data *sd)
if (pc_isdead(sd))
break;
- if ( pc_cant_act2(sd) )
+ if ( pc_cant_act2(sd) || sd->state.vending )
break;
if (sd->sc.count && (
@@ -10795,7 +10795,7 @@ void clif_parse_NpcClicked(int fd,struct map_session_data *sd)
#endif
return;
}
- if ( pc_cant_act2(sd) || !(bl = iMap->id2bl(RFIFOL(fd,2))) )
+ if ( pc_cant_act2(sd) || !(bl = iMap->id2bl(RFIFOL(fd,2))) || sd->state.vending )
return;
switch (bl->type) {