mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
new feature: dynamic flashlights allows usable flashlights
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6061 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -8665,6 +8665,9 @@ void SwapHandItems( SOLDIERTYPE * pSoldier )
|
||||
SwapObjs( pSoldier, HANDPOS, SECONDHANDPOS, TRUE );
|
||||
DirtyMercPanelInterface( pSoldier, DIRTYLEVEL2 );
|
||||
}
|
||||
|
||||
// Flugente: we have to recheck our flashlights
|
||||
pSoldier->HandleFlashLights();
|
||||
}
|
||||
|
||||
void SwapOutHandItem( SOLDIERTYPE * pSoldier )
|
||||
@@ -8694,6 +8697,9 @@ void SwapOutHandItem( SOLDIERTYPE * pSoldier )
|
||||
// otherwise there's no room for the item anywhere!
|
||||
}
|
||||
}
|
||||
|
||||
// Flugente: we have to recheck our flashlights
|
||||
pSoldier->HandleFlashLights();
|
||||
}
|
||||
|
||||
void WaterDamage( SOLDIERTYPE *pSoldier )
|
||||
@@ -14407,6 +14413,9 @@ BOOLEAN OBJECTTYPE::TransformObject( SOLDIERTYPE * pSoldier, UINT8 ubStatusIndex
|
||||
}
|
||||
}
|
||||
|
||||
// Flugente: we have to recheck our flashlights
|
||||
pSoldier->HandleFlashLights();
|
||||
|
||||
// Signal a successful transformation.
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user