From 5840adc4ec2eb147b90623af615120c8efbefc35 Mon Sep 17 00:00:00 2001 From: Wanne Date: Fri, 24 Apr 2009 16:00:41 +0000 Subject: [PATCH] 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 --- Tactical/Points.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tactical/Points.cpp b/Tactical/Points.cpp index 03d45a29..d1cb5593 100644 --- a/Tactical/Points.cpp +++ b/Tactical/Points.cpp @@ -602,11 +602,14 @@ void DeductPoints( SOLDIERTYPE *pSoldier, INT16 sAPCost, INT32 iBPCost,BOOLEAN f 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 ( sNewAP < 0 ) { sNewAP = 0; } + */ pSoldier->bActionPoints = sNewAP;