- Made the "Rifle sling" feature optional, so we can decide if we like to build an executable with/without the feature

o See: builddefines.h: #define ENABLE_RIFLE_SLING
o Note: This feature is NOT the strategy performance killer

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5360 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2012-07-06 13:43:34 +00:00
parent cecdc22d61
commit de6c84d4a9
4 changed files with 15 additions and 0 deletions
+2
View File
@@ -5768,6 +5768,7 @@ UINT8 StealItems(SOLDIERTYPE* pSoldier,SOLDIERTYPE* pOpponent, UINT8* ubIndexRet
{
case HANDPOS:
case GUNSLINGPOCKPOS:
#ifdef ENABLE_RIFLE_SLING
{
// Flugente: if item has a weapon sling attached, it can't be stolen
if ( HasAttachmentOfClass(pObject, AC_SLING) )
@@ -5777,6 +5778,7 @@ UINT8 StealItems(SOLDIERTYPE* pSoldier,SOLDIERTYPE* pOpponent, UINT8* ubIndexRet
break;
}
#endif
case SECONDHANDPOS:
case KNIFEPOCKPOS:
case BIGPOCK1POS: