Fixed favorite item tab, now items are only moved if you place them in the proper tab (before this you could try to move a consumable to the etc tab and it'd go to favorite tab.) thanks to malufett for his info&report!

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16543 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shennetsind 2012-08-01 02:40:59 +00:00
parent ba48503772
commit 79d7533334

View File

@ -16180,14 +16180,18 @@ void clif_parse_MoveItem(int fd, struct map_session_data *sd) {
return;
}
index = RFIFOW(fd,2)-2;
index = RFIFOW(fd,2)-2;
if (index < 0 || index >= MAX_INVENTORY)
return;
if ( sd->status.inventory[index].favorite )
sd->status.inventory[index].favorite = 0;
else
sd->status.inventory[index].favorite = 1;
if ( sd->status.inventory[index].favorite && RFIFOB(fd, 4) == 1 )
sd->status.inventory[index].favorite = 0;
else if( RFIFOB(fd, 4) == 0 )
sd->status.inventory[index].favorite = 1;
else
return;/* nothing to do. */
clif_favorite_item(sd, index);
#endif
}
@ -16213,7 +16217,7 @@ void clif_snap( struct block_list *bl, short x, short y ) {
WBUFW(buf,6) = x;
WBUFW(buf,8) = y;
clif_send(buf,packet_len(0x8d2),bl,AREA);
//clif_send(buf,packet_len(0x8d2),bl,AREA);
}
/*==========================================