Browse Source

Enhance ctrl + drop

pull/3075/head
Yuri Pourre 5 years ago committed by Anders Jenbo
parent
commit
7d74336e6b
  1. 4
      Source/controls/plrctrls.cpp
  2. 2
      Source/inv.cpp

4
Source/controls/plrctrls.cpp

@ -1405,6 +1405,10 @@ bool TryDropItem()
DropItemBeforeTrig();
}
if (pcurs != CURSOR_HAND) {
myPlayer.Say(HeroSpeech::WhereWouldIPutThis);
}
return pcurs == CURSOR_HAND;
}

2
Source/inv.cpp

@ -879,7 +879,7 @@ void CheckInvCut(int pnum, Point cursorPosition, bool automaticMove, bool dropIt
holdItem._itype = ItemType::None;
} else {
NewCursor(holdItem._iCurs + CURSOR_FIRSTITEM);
if (!IsHardwareCursor()) {
if (!IsHardwareCursor() && !dropItem) {
// For a hardware cursor, we set the "hot point" to the center of the item instead.
SetCursorPos(cursorPosition - Displacement(cursSize / 2));
}

Loading…
Cancel
Save