mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
Fix: sound for drinking water played twice
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8557 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -9684,18 +9684,6 @@ BOOLEAN ApplyCanteen( SOLDIERTYPE * pSoldier, UINT16 usItem, UINT16 usPointsToUs
|
|||||||
return(FALSE);
|
return(FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pSoldier->bTeam == gbPlayerNum )
|
|
||||||
{
|
|
||||||
if ( gMercProfiles[pSoldier->ubProfile].bSex == MALE )
|
|
||||||
{
|
|
||||||
PlayJA2Sample( DRINK_CANTEEN_MALE, RATE_11025, MIDVOLUME, 1, MIDDLEPAN );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PlayJA2Sample( DRINK_CANTEEN_FEMALE, RATE_11025, MIDVOLUME, 1, MIDDLEPAN );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// CJC Feb 9. Canteens don't seem effective enough, so doubled return from them
|
// CJC Feb 9. Canteens don't seem effective enough, so doubled return from them
|
||||||
DeductPoints( pSoldier, 0, (INT16)(2 * usPointsToUse * -(100 - pSoldier->bBreath)) );
|
DeductPoints( pSoldier, 0, (INT16)(2 * usPointsToUse * -(100 - pSoldier->bBreath)) );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user