mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
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:
@@ -151,8 +151,10 @@ void BobbyRayPurchaseEventCallback( UINT8 ubOrderID )
|
|||||||
memset( pStolenObject, 0, sizeof( OBJECTTYPE ) * usNumberOfItems );
|
memset( pStolenObject, 0, sizeof( OBJECTTYPE ) * usNumberOfItems );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WDS - Option to turn off stealing
|
||||||
// check for potential theft
|
// check for potential theft
|
||||||
if (CheckFact( FACT_PABLO_WONT_STEAL, 0 ))
|
if (gGameExternalOptions.fStealingDisabled ||
|
||||||
|
CheckFact( FACT_PABLO_WONT_STEAL, 0 ))
|
||||||
{
|
{
|
||||||
uiChanceOfTheft = 0;
|
uiChanceOfTheft = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user