瀏覽代碼

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

Emagi 2 年之前
父節點
當前提交
3c42c9a9f2
共有 1 個文件被更改,包括 3 次插入0 次删除
  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.");