From 1b60a67678bbe085ae1871c48eeee8c16a1c24e6 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sun, 29 May 2011 21:46:00 +0000 Subject: [PATCH] - Fixed game hang when merc tries to exermine a door with explosives git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@4459 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Items.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tactical/Items.cpp b/Tactical/Items.cpp index c51b19f4..7c841e94 100644 --- a/Tactical/Items.cpp +++ b/Tactical/Items.cpp @@ -10990,13 +10990,16 @@ void ApplyEquipmentBonuses(SOLDIERTYPE * pSoldier) //if ( pSoldier->bInSector) // pSoldier->CreateSoldierPalettes( ); - // WANNE: We should only delete the face, if there was a camo we applied. + + // WANNE: I disabled the call, because it leeds to endless loop when examining doors with explosives! + /* // This should fix the bug and crashes with missing faces if (SetCamoFace( pSoldier )) { DeleteSoldierFace( pSoldier );// remove face pSoldier->iFaceIndex = InitSoldierFace( pSoldier );// create new face } + */ fInterfacePanelDirty = DIRTYLEVEL2; }