Bugfix: This small patch fixes bug with remote explosives not being removed after activation, if they were armed in inventory and thrown afterwards (by Sevenfm)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6654 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2013-11-26 11:44:29 +00:00
parent 614a56fe54
commit d3d14d2c47
+3
View File
@@ -488,6 +488,9 @@ INT32 AddItemToWorld( INT32 sGridNo, OBJECTTYPE *pObject, UINT8 ubLevel, UINT16
pSoldier = MercPtrs[ soldierID ];
}
}
// sevenfm: added flag WORLD_ITEM_ARMED_BOMB
// this fixes bug with remote explosives not being removed after activation, if they were armed in inventory and thrown afterwards
gWorldItems[ iItemIndex ].usFlags |= WORLD_ITEM_ARMED_BOMB;
if (pSoldier != NULL)
{