mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Small fixes and tweaks (by Sandro)
o Minor feature added: Shift+RMB click on a gun with ammo inside, will now unload its magazine and place it on your cursor (if not holding anything already). You don't have to go to the weapon description box to unload it. o Added Throwing trait support for NCTH (was left out before) and added a minor tweak to STOMP+NCTH compatibility. o Fixed a bug in NCTH when aiming levels of very fast-to-aim guns could be lowered below zero during calculation, which resulted in suddenly giving the gun 8 aim levels making it extremely slow to aim instead. This occurs when you use a pistol with reflex sights with a Gunslinger merc. In the "AllowedAimingLevelsNCTH" the value "aimLevels" was defined as UINT8, so when it goes below 0, it becomes 255 and is then capped at 8. Changed it to signed. - IIS fix (by Sandro) o Interrupts on hearing now occur only in meaningful situations - either when enemy attacks us or comes very close to us. o Added some other IIS tweaks and fixes (first of all the top status bar should now work properly). git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5289 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+15
-5
@@ -582,6 +582,8 @@ extern void SwapGoggles(SOLDIERTYPE *pTeamSoldier);
|
||||
// HEADROCK HAM B2.8: Function to switch team's goggles uniformly
|
||||
extern void SwapGogglesUniformly(SOLDIERTYPE *pTeamSoldier, BOOLEAN fToNightVision);
|
||||
|
||||
extern void InternalMAPBeginItemPointer( SOLDIERTYPE *pSoldier );
|
||||
|
||||
UINT32 guiCHARLIST;
|
||||
UINT32 guiCHARINFO;
|
||||
UINT32 guiSleepIcon;
|
||||
@@ -9683,12 +9685,20 @@ void MAPInvClickCallback( MOUSE_REGION *pRegion, INT32 iReason )
|
||||
{
|
||||
if ( !InItemDescriptionBox( ) )
|
||||
{
|
||||
//CHRISL: This could return a false in which case we don't want to activate the infobox.
|
||||
if(InitItemDescriptionBox( pSoldier, (UINT8)uiHandPos, MAP_ITEMDESC_START_X, MAP_ITEMDESC_START_Y, 0 ))
|
||||
if ( _KeyDown(SHIFT) && gpItemPointer == NULL && Item[pSoldier->inv[ uiHandPos ].usItem].usItemClass == IC_GUN && !(Item[pSoldier->inv[ uiHandPos ].usItem].singleshotrocketlauncher) )
|
||||
{
|
||||
fShowDescriptionFlag=TRUE;
|
||||
fTeamPanelDirty=TRUE;
|
||||
fInterfacePanelDirty = DIRTYLEVEL2;
|
||||
EmptyWeaponMagazine( &(pSoldier->inv[ uiHandPos ]), &gItemPointer );
|
||||
InternalMAPBeginItemPointer( pSoldier );
|
||||
}
|
||||
else
|
||||
{
|
||||
//CHRISL: This could return a false in which case we don't want to activate the infobox.
|
||||
if(InitItemDescriptionBox( pSoldier, (UINT8)uiHandPos, MAP_ITEMDESC_START_X, MAP_ITEMDESC_START_Y, 0 ))
|
||||
{
|
||||
fShowDescriptionFlag=TRUE;
|
||||
fTeamPanelDirty=TRUE;
|
||||
fInterfacePanelDirty = DIRTYLEVEL2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user