diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-15 21:07:00 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-15 21:07:00 +0000 |
commit | bde640d49c4a26203d76ea5884c1264b3f7828e2 (patch) | |
tree | 35be87ac5f58dcdb1a389da9db6fc77db1b9c4d7 /src/map/clif.c | |
parent | 29424f4862169ff53b78b233a1ef490329817f0f (diff) | |
download | hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.tar.gz hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.tar.bz2 hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.tar.xz hercules-bde640d49c4a26203d76ea5884c1264b3f7828e2.zip |
- Added mapflag nodrop, fixed mapflag notrade.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5619 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ac7c73ef5..802bbea15 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -9617,7 +9617,10 @@ void clif_parse_DropItem(int fd, struct map_session_data *sd) { item_index = RFIFOW(fd,packet_db[sd->packet_ver][RFIFOW(fd,0)].pos[0])-2;
item_amount = RFIFOW(fd,packet_db[sd->packet_ver][RFIFOW(fd,0)].pos[1]);
- pc_dropitem(sd, item_index, item_amount);
+ if (!pc_dropitem(sd, item_index, item_amount))
+ //Because the client does not likes being ignored.
+ clif_delitem(sd, item_index,0);
+
}
/*==========================================
|