Enable .ini setting to disable stealing

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@838 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
SpaceViking
2007-04-07 03:39:47 +00:00
parent 682d33da8c
commit 0ca9624e95
+3 -1
View File
@@ -151,8 +151,10 @@ void BobbyRayPurchaseEventCallback( UINT8 ubOrderID )
memset( pStolenObject, 0, sizeof( OBJECTTYPE ) * usNumberOfItems );
}
// WDS - Option to turn off stealing
// check for potential theft
if (CheckFact( FACT_PABLO_WONT_STEAL, 0 ))
if (gGameExternalOptions.fStealingDisabled ||
CheckFact( FACT_PABLO_WONT_STEAL, 0 ))
{
uiChanceOfTheft = 0;
}