mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Various Bugfixes by Headrock:
- Fixed: NPC and PC movement errors - Fixed: Boxers in San Mona do not leave the boxing ring after the fight - Fixed: Darren does not pay the cash after you won the boxing fight git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3320 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -83,6 +83,14 @@ void ExitBoxing( void )
|
||||
pSoldier->aiData.bAlertStatus = STATUS_GREEN;
|
||||
pSoldier->aiData.bUnderFire = 0;
|
||||
|
||||
// HEADROCK HAM 3.6: Make sure all boxers' APs have been reset to a reasonable number. Otherwise,
|
||||
// the AI combatant may fail several conditions in subsequent functions, and fail to leave the ring
|
||||
// as a result.
|
||||
if (pSoldier->bActionPoints < (APBPConstants[AP_MAXIMUM]*6)/10)
|
||||
{
|
||||
pSoldier->bActionPoints = (APBPConstants[AP_MAXIMUM]*6)/10;
|
||||
}
|
||||
|
||||
// if necessary, revive boxer so he can leave ring
|
||||
if (pSoldier->stats.bLife > 0 && (pSoldier->stats.bLife < OKLIFE || pSoldier->bBreath < OKBREATH ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user