Fix for not enough action points error message not appearing when using consumable without enough AP in turn based mode. (The message got overriden with another one -> "Huh?") (by Shadooow)

Additionally fixed empty canteens to consume AP just to do nothing. Empty canteen now throws the Huh? error.

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8993 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Sevenfm
2021-04-30 20:54:27 +00:00
parent 5400775c82
commit 891a17d859
2 changed files with 12 additions and 10 deletions
+3 -2
View File
@@ -9508,11 +9508,12 @@ void MAPInvClickCamoCallback( MOUSE_REGION *pRegion, INT32 iReason )
// We are doing this ourselve, continue
if ( pSoldier->stats.bLife >= CONSCIOUSNESS )
{
if ( ApplyConsumable( pSoldier, gpItemPointer, FALSE, TRUE ) )
BOOLEAN bApplyConsumable = ApplyConsumable(pSoldier, gpItemPointer, FALSE, TRUE);
if (bApplyConsumable == TRUE)
{
UpdateMercBodyRegionHelpText( );
}
else
else if(!bApplyConsumable)
{
// Send message
//Heinz: 23.02.09 BUGFIX: Don't send message when SKI is on