mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2295,6 +2295,9 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
|
||||
HandleLocateSelectMerc( bID, LOCATEANDSELECT_MERC );
|
||||
|
||||
ErasePath(TRUE);
|
||||
gfPlotNewMovement = TRUE;
|
||||
|
||||
// Center to guy....
|
||||
LocateSoldier( gusSelectedSoldier, SETLOCATOR );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user