Explorar o código

Inventory can no longer fold into itself (delete item) when you move item to its original slot holding left click

Emagi %!s(int64=2) %!d(string=hai) anos
pai
achega
3c42c9a9f2
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      EQ2/source/WorldServer/Commands/Commands.cpp

+ 3 - 0
EQ2/source/WorldServer/Commands/Commands.cpp

@@ -6730,6 +6730,9 @@ void Commands::Command_Inventory(Client* client, Seperator* sep, EQ2_RemoteComma
 				return;
 			}
 			
+			if(to_slot == item->details.slot_id && (bag_id < 0 || bag_id == item->details.inv_slot_id)) {
+				return;
+			}
 			if(item->details.item_locked)
 			{
 				client->SimpleMessage(CHANNEL_COLOR_RED, "You cannot move the item in use.");