Fix/drag unconscious softlock

Same logic but cleaned up version of https://github.com/1dot13/source/pull/602 which Tais contributed with Claude Code's help

Most calls to SOLDIERTYPE::IsDragging() aren't supposed to have a side effect of cancelling a drag, being simple queries.
Changing the default to reflect that is right move.

Assisted-by: Claude:
This commit is contained in:
Marco Antonio J. Costa
2026-06-01 21:45:55 -03:00
committed by majcosta
parent 8b3e417872
commit b4176bb2d9
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2221,7 +2221,7 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
// sevenfm: also stop dragging
if (gusSelectedSoldier != NOBODY &&
gusSelectedSoldier &&
gusSelectedSoldier->IsDragging(false))
gusSelectedSoldier->IsDragging())
{
gusSelectedSoldier->CancelDrag();
DirtyMercPanelInterface(gusSelectedSoldier, DIRTYLEVEL2);