mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- changed SHOT_HEAD_DIVISOR to SHOT_HEAD_MULTIPLIER. The old name was misleading
- fixed CTH bonus calculation for special characters in NCTH - fixed merc swap feature. Sometimes mercs became invisible because of wrong structure problems. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7235 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6802,7 +6802,7 @@ void SwapMercPortraits ( SOLDIERTYPE *pSoldier, INT8 bDirection )
|
||||
UINT8 ubGroupID = pSoldier->ubGroupID;
|
||||
INT8 bOldPosition = GetTeamSlotFromPlayerID ( MercPtrs[ ubSourceMerc ]->ubID );
|
||||
INT8 bNewPosition = bOldPosition + bDirection;
|
||||
SOLDIERTYPE TempMercPtr = *MercPtrs[ ubSourceMerc ];
|
||||
SOLDIERTYPE *TempMercPtr = MercPtrs[ ubSourceMerc ];
|
||||
|
||||
// anv: vehicle passengers are swapped differently
|
||||
if( pSoldier->flags.uiStatusFlags & ( SOLDIER_DRIVER | SOLDIER_PASSENGER ) )
|
||||
@@ -6833,8 +6833,8 @@ void SwapMercPortraits ( SOLDIERTYPE *pSoldier, INT8 bDirection )
|
||||
FACETYPE TempFace = gFacesData[ iSourceFace ];
|
||||
|
||||
// swap the data
|
||||
*MercPtrs[ ubSourceMerc ] = *MercPtrs[ ubTargetMerc ];
|
||||
*MercPtrs[ ubTargetMerc ] = TempMercPtr;
|
||||
MercPtrs[ ubSourceMerc ] = MercPtrs[ ubTargetMerc ];
|
||||
MercPtrs[ ubTargetMerc ] = TempMercPtr;
|
||||
// also swap face data, otherwise face gear, opp count etc won't update
|
||||
gFacesData[ iSourceFace ] = gFacesData[ iTargetFace ];
|
||||
gFacesData[ iTargetFace ] = TempFace;
|
||||
|
||||
Reference in New Issue
Block a user