mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Convert SOLDIERTYPE->ubNextToPreviousAttackerID to SoldierID
This commit is contained in:
@@ -3848,7 +3848,7 @@ void send_death( SOLDIERTYPE *pSoldier )
|
|||||||
{
|
{
|
||||||
if (pSoldier->ubPreviousAttackerID < NOBODY)
|
if (pSoldier->ubPreviousAttackerID < NOBODY)
|
||||||
nDeath.attacker_id = pSoldier->ubPreviousAttackerID;
|
nDeath.attacker_id = pSoldier->ubPreviousAttackerID;
|
||||||
else if (pSoldier->ubNextToPreviousAttackerID != NOBODY && pSoldier->ubNextToPreviousAttackerID != NULL)
|
else if (pSoldier->ubNextToPreviousAttackerID < NOBODY)
|
||||||
nDeath.attacker_id = pSoldier->ubNextToPreviousAttackerID;
|
nDeath.attacker_id = pSoldier->ubNextToPreviousAttackerID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3867,8 +3867,8 @@ void send_death( SOLDIERTYPE *pSoldier )
|
|||||||
{
|
{
|
||||||
pAttacker = pSoldier->ubPreviousAttackerID;
|
pAttacker = pSoldier->ubPreviousAttackerID;
|
||||||
// check if the new attacker was also a friendly...
|
// check if the new attacker was also a friendly...
|
||||||
if (pAttacker->bTeam == pSoldier->bTeam && pSoldier->ubNextToPreviousAttackerID != NULL && pSoldier->ubNextToPreviousAttackerID != NOBODY)
|
if (pAttacker->bTeam == pSoldier->bTeam && pSoldier->ubNextToPreviousAttackerID < NOBODY)
|
||||||
pAttacker=MercPtrs[ pSoldier->ubNextToPreviousAttackerID ];
|
pAttacker = pSoldier->ubNextToPreviousAttackerID;
|
||||||
// if its still a friendly, use the original attacker id...for posterity
|
// if its still a friendly, use the original attacker id...for posterity
|
||||||
// guy must snore too loudly if all his mates wanna kill him :)
|
// guy must snore too loudly if all his mates wanna kill him :)
|
||||||
if (pAttacker->bTeam == pSoldier->bTeam && pSoldier->ubAttackerID != NOBODY)
|
if (pAttacker->bTeam == pSoldier->bTeam && pSoldier->ubAttackerID != NOBODY)
|
||||||
|
|||||||
@@ -1504,7 +1504,7 @@ public:
|
|||||||
UINT8 ubLastDamageReason;
|
UINT8 ubLastDamageReason;
|
||||||
INT32 sLastTwoLocations[2];
|
INT32 sLastTwoLocations[2];
|
||||||
INT32 uiTimeSinceLastBleedGrunt;
|
INT32 uiTimeSinceLastBleedGrunt;
|
||||||
UINT16 ubNextToPreviousAttackerID;
|
SoldierID ubNextToPreviousAttackerID;
|
||||||
UINT8 bDoAutofire;
|
UINT8 bDoAutofire;
|
||||||
INT8 numFlanks;
|
INT8 numFlanks;
|
||||||
INT32 lastFlankSpot;
|
INT32 lastFlankSpot;
|
||||||
|
|||||||
Reference in New Issue
Block a user