Actually fix NOTIFY_IF_SLEEP_FAILS for multiple mercs selected

This commit is contained in:
Marco Antonio J. Costa
2025-08-24 07:39:00 -03:00
committed by majcosta
parent ed00830202
commit 3c44f133fd
2 changed files with 5 additions and 16 deletions
+2 -13
View File
@@ -18305,21 +18305,10 @@ BOOLEAN HandleSelectedMercsBeingPutAsleep( BOOLEAN fWakeUp, BOOLEAN fDisplayWarn
}
}
if( ubNumberOfSelectedSoldiers == 0 )
{
return fSuccess;
}
if( !fDisplayWarning ) {
return fSuccess;
}
CHAR16 sString[ 128 ];
swprintf( sString, fWakeUp ? pMapErrorString[ 27 ] : pMapErrorString[ 26 ] );
if( gGameExternalOptions.fSleepDisplayFailNotification )
if( ubNumberOfSelectedSoldiers && !fSuccess && fDisplayWarning )
{
// inform player not everyone could be woke up or put to sleep
DoScreenIndependantMessageBox( sString, MSG_BOX_FLAG_OK, NULL);
DoScreenIndependantMessageBox(fWakeUp ? pMapErrorString[27] : pMapErrorString[26], MSG_BOX_FLAG_OK, NULL);
}
return( fSuccess );