Fix: path not being erased and recalculated when changing selected soldier via SPACE button (by Shadooow).

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8964 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-04-22 06:14:00 +00:00
parent 886c1bac71
commit 73070b004b
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -5699,7 +5699,7 @@ void RenderTEAMPanel( BOOLEAN fDirty )
if (gTacticalStatus.uiFlags & INCOMBAT )
{
VarFindFontCenterCoordinates( sTEAMApXY[ posIndex ], sTEAMApXY[ posIndex + 1], TM_AP_WIDTH, TM_AP_HEIGHT, TINYFONT1, &sFontX, &sFontY, L"%d", GetUIApsToDisplay( pSoldier ) );
VarFindFontCenterCoordinates( sTEAMApXY[ posIndex ], sTEAMApXY[ posIndex + 1], TM_AP_WIDTH, TM_AP_HEIGHT, TINYFONT1, &sFontX, &sFontY, L"%d", GetUIApsToDisplay( pSoldier ) );
mprintf( sFontX, sTEAMApXY[ posIndex + 1], L"%d", GetUIApsToDisplay( pSoldier ) );
}
}
+3
View File
@@ -2295,6 +2295,9 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
HandleLocateSelectMerc( bID, LOCATEANDSELECT_MERC );
ErasePath(TRUE);
gfPlotNewMovement = TRUE;
// Center to guy....
LocateSoldier( gusSelectedSoldier, SETLOCATOR );
}