Convert SOLDIERTYPE->usChatPartnerID to SoldierID

This commit is contained in:
Asdow
2024-11-15 21:09:17 +02:00
parent 83b3485e58
commit ecb29ae9bc
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -11397,7 +11397,7 @@ void CheckChatPartners()
if ( fMercQuoteThisTime )
GetSoldierScreenPos( pSoldier, &sScreenX, &sScreenY );
else
GetSoldierScreenPos( MercPtrs[pSoldier->usChatPartnerID], &sScreenX, &sScreenY );
GetSoldierScreenPos( pSoldier->usChatPartnerID, &sScreenX, &sScreenY );
if ( gsVIEWPORT_START_X <= sScreenX &&
gsVIEWPORT_END_X >= sScreenX &&
@@ -11407,7 +11407,7 @@ void CheckChatPartners()
if ( fMercQuoteThisTime )
BeginChatQuote( pSoldier, sScreenX, sScreenY );
else
BeginChatQuote( MercPtrs[pSoldier->usChatPartnerID], sScreenX, sScreenY );
BeginChatQuote( pSoldier->usChatPartnerID, sScreenX, sScreenY );
fMercQuoteThisTime = !fMercQuoteThisTime;
+1 -1
View File
@@ -21010,7 +21010,7 @@ void SOLDIERTYPE::StopChatting()
{
if ( this->usChatPartnerID != NOBODY )
{
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, TacticalStr[DISTRACT_STOP_STR], this->GetName(), MercPtrs[this->usChatPartnerID]->GetName() );
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, TacticalStr[DISTRACT_STOP_STR], this->GetName(), this->usChatPartnerID->GetName() );
MercPtrs[this->usChatPartnerID]->usChatPartnerID = NOBODY;
this->usChatPartnerID = NOBODY;
+1 -1
View File
@@ -1550,7 +1550,7 @@ public:
//INT16 bUnusedINT16_4;
INT16 sDragCorpseID; // Flugente: id of corpse we are dragging
UINT16 usChatPartnerID; // Flugente: the id of another merc we are 'chatting' with
SoldierID usChatPartnerID; // Flugente: the id of another merc we are 'chatting' with
// Flugente: new variables for extra stats
INT16 bExtraStrength; // additional strength gained via power armor