mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user