mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
-Fix for throwing explosives with attachments (by Sevenfm)
Weight is now considered correctly. -Civilians now take care not to step on player placed tripwire. (by Sevenfm) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6585 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2006,6 +2006,8 @@ UINT8 HandleNonActivatedTossCursor( SOLDIERTYPE *pSoldier, INT32 sGridNo, BOOLEA
|
||||
OBJECTTYPE* pObject = &(pSoldier->inv[HANDPOS]);
|
||||
// Do we have a launcable?
|
||||
pObj = &(pSoldier->inv[HANDPOS]);
|
||||
//sevenfm this should be checked only for guns because we can throw items with attached explosives
|
||||
if(Item[pObj->usItem].usItemClass & IC_WEAPON )
|
||||
for (attachmentList::iterator iter = (*pObj)[0]->attachments.begin(); iter != (*pObj)[0]->attachments.end(); ++iter) {
|
||||
if ( Item[ iter->usItem ].usItemClass & IC_EXPLOSV && iter->exists())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user