mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Merged revision(s) 7251 from branches/ja2_source_official_2014:
code cleanup & removed some warnings git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7252 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+2
-1
@@ -5756,7 +5756,7 @@ void RemoveProhibitedAttachments(SOLDIERTYPE* pSoldier, OBJECTTYPE* pObj, UINT16
|
||||
// put it on the ground //dnl ch75 281013
|
||||
INT32 sGridNo = NOWHERE;
|
||||
UINT8 ubLevel = 0;
|
||||
for(int i=0; i<guiNumWorldItems; i++)
|
||||
for(UINT32 i=0; i<guiNumWorldItems; ++i)
|
||||
{
|
||||
if(gWorldItems[i].fExists && (pObj == &gWorldItems[i].object))
|
||||
{
|
||||
@@ -5765,6 +5765,7 @@ void RemoveProhibitedAttachments(SOLDIERTYPE* pSoldier, OBJECTTYPE* pObj, UINT16
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(sGridNo != NOWHERE)
|
||||
{
|
||||
if(guiCurrentItemDescriptionScreen == MAP_SCREEN && fShowMapInventoryPool)
|
||||
|
||||
@@ -415,7 +415,7 @@ UINT8 HandleActivatedTargetCursor( SOLDIERTYPE *pSoldier, INT32 usMapPos, BOOLEA
|
||||
ubMaxBullets = DefaultAutofireBulletsByGunClass( pSoldier );
|
||||
if( ubMaxBullets == 0 )
|
||||
{
|
||||
ubMaxBullets = usShotsLeft;
|
||||
ubMaxBullets = (UINT8)usShotsLeft;
|
||||
bMaxAim = maxAimLevels;
|
||||
}
|
||||
|
||||
|
||||
@@ -12150,17 +12150,13 @@ INT16 GetAPsToReload( OBJECTTYPE *pObj )
|
||||
else if ( Item[ pObj->usItem ].usItemClass == IC_LAUNCHER )
|
||||
fModifier = gItemSettings.fAPtoReloadModifierLauncher;
|
||||
|
||||
return ( Weapon[ pObj->usItem ].APsToReload * fModifier *
|
||||
( 100 - GetPercentReloadTimeAPReduction(pObj) ) ) / 100;
|
||||
|
||||
return ( Weapon[ pObj->usItem ].APsToReload * fModifier * ( 100 - GetPercentReloadTimeAPReduction(pObj) ) ) / 100;
|
||||
}
|
||||
|
||||
// HEADROCK HAM 3.4: Estimates the number of bullets left in the gun. For use during combat.
|
||||
|
||||
CHAR16 gBulletCount[10]; // This is a global containing the bullet count string
|
||||
void EstimateBulletsLeft( SOLDIERTYPE *pSoldier, OBJECTTYPE *pObj )
|
||||
{
|
||||
|
||||
UINT16 usExpLevel;
|
||||
UINT32 usDexterity;
|
||||
UINT32 usWisdom;
|
||||
|
||||
Reference in New Issue
Block a user