mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
fixed bug allowing to plot path with Robot or NPCs that needs to be escorted on their own
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9225 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -4602,13 +4602,21 @@ void HandleSettingTheSelectedListOfMercs( void )
|
|||||||
|
|
||||||
if( GetSelectedDestChar() != -1 )
|
if( GetSelectedDestChar() != -1 )
|
||||||
{
|
{
|
||||||
|
INT8 pbErrorNumber = -1;
|
||||||
|
pSoldier = MercPtrs[gCharactersList[GetSelectedDestChar()].usSolID];
|
||||||
|
if (!CanCharacterMoveInStrategic(pSoldier, &pbErrorNumber))
|
||||||
|
{
|
||||||
|
SetSelectedDestChar(-1);
|
||||||
|
giDestHighLine = -1;
|
||||||
|
return;
|
||||||
|
}
|
||||||
// set cursor
|
// set cursor
|
||||||
SetUpCursorForStrategicMap( );
|
SetUpCursorForStrategicMap( );
|
||||||
fTeamPanelDirty = TRUE;
|
fTeamPanelDirty = TRUE;
|
||||||
fMapPanelDirty = TRUE;
|
fMapPanelDirty = TRUE;
|
||||||
fCharacterInfoPanelDirty = TRUE;
|
fCharacterInfoPanelDirty = TRUE;
|
||||||
|
|
||||||
DeselectSelectedListMercsWhoCantMoveWithThisGuy( &( Menptr[ gCharactersList[GetSelectedDestChar()].usSolID ] ) );
|
DeselectSelectedListMercsWhoCantMoveWithThisGuy( pSoldier );
|
||||||
|
|
||||||
// remember the current paths for all selected characters so we can restore them if need be
|
// remember the current paths for all selected characters so we can restore them if need be
|
||||||
RememberPreviousPathForAllSelectedChars();
|
RememberPreviousPathForAllSelectedChars();
|
||||||
|
|||||||
Reference in New Issue
Block a user