Fixes guns being unwielded by mousing over the inventory UI (#22712)

Fixes #22036 

changes:
- bugfix: "Fixed guns getting unwielded when mousing over UI elements."
- bugfix: "Fixed mob_can_equip using M as mob, instead of mob/M. Also
adds its parameters to all its children."


https://github.com/user-attachments/assets/0f427609-3cfc-4c71-b817-44a8d2c6350d
This commit is contained in:
FenodyreeAv
2026-06-16 19:21:38 +00:00
committed by GitHub
parent 8255989fd9
commit ab65965c5c
12 changed files with 38 additions and 27 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
if(item_to_equip.item_flags & ITEM_FLAG_NO_MOVE) //Cannot move ITEM_FLAG_NO_MOVE items from one inventory slot to another. Cannot do canremove here because then BSTs spawn naked.
return FALSE
if(!item_to_equip.mob_can_equip(src, slot, disable_warning, bypass_blocked_check))
if(!item_to_equip.mob_can_equip(src, slot, disable_warning, bypass_blocked_check, is_overlay_check = FALSE))
if(delete_on_fail)
qdel(item_to_equip)
else