mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Bugfix: negative APs didn't actually have any effect on the next turn because they were being reset to 0 before they could have any effect (by Headrock)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2766 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -602,11 +602,14 @@ void DeductPoints( SOLDIERTYPE *pSoldier, INT16 sAPCost, INT32 iBPCost,BOOLEAN f
|
|||||||
fInterfacePanelDirty = TRUE;
|
fInterfacePanelDirty = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WANNE: negative APs didn't actually have any effect on the next turn because they were being reset to 0 before they could have any effect (by Headrock)
|
||||||
// If we cannot deduct points, return FALSE
|
// If we cannot deduct points, return FALSE
|
||||||
|
/*
|
||||||
if ( sNewAP < 0 )
|
if ( sNewAP < 0 )
|
||||||
{
|
{
|
||||||
sNewAP = 0;
|
sNewAP = 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
pSoldier->bActionPoints = sNewAP;
|
pSoldier->bActionPoints = sNewAP;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user