From 3965f72b5a86a13221a634736636a6201d8f3d4c Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sun, 21 Dec 2014 14:47:58 -0800 Subject: [PATCH] - updated debug output in case there are real boost problems in future --- source/glest_game/types/upgrade_type.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/glest_game/types/upgrade_type.cpp b/source/glest_game/types/upgrade_type.cpp index 5863dd07..44376c72 100644 --- a/source/glest_game/types/upgrade_type.cpp +++ b/source/glest_game/types/upgrade_type.cpp @@ -1459,7 +1459,12 @@ void TotalUpgrade::deapply(int sourceUnitId, const UpgradeTypeBase *ut,int destU } } if(removedBoost == false) { - printf("\n\n!!!!!! de-apply boost NOT FOUND!\n\n"); + printf("\n\n!!!!!! de-apply boost NOT FOUND for sourceUnitId = %d, destUnitId = %d\n%s\n\nCurrent Boosts:\n", + sourceUnitId,destUnitId,ut->toString().c_str()); + for(unsigned int index = 0; index < boostUpgrades.size(); ++index) { + TotalUpgrade *boost = boostUpgrades[index]; + printf("\nBoost #%d\n%s\n",index,boost->toString().c_str()); + } } }