Skip to content

Commit 929d30d

Browse files
authored
Merge pull request #1025 from anf3is/fix/stranges-notification-rounding
Fix milestone value in notifications for strange counters
2 parents c731d26 + 873c04b commit 929d30d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/game/shared/swarm/rd_inventory_shared.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,11 @@ static class CRD_Inventory_Manager final : public CAutoGameSystem, public CGameE
10611061

10621062
if ( iTierBefore < iTierAfter && pNPC && pOwner )
10631063
{
1064+
int64_t iCountForTierAfter = CountForStrangeTier(iTierAfter);
10641065
#ifdef CLIENT_DLL
10651066
if ( CASWHud3DMarineNames *pMarineNames = assert_cast< CASWHud3DMarineNames * >( GetHud().FindElement( "ASWHud3DMarineNames" ) ) )
10661067
{
1067-
pMarineNames->OnStrangeDeviceTierNotification( pOwner, pNPC, instance.m_iItemDefID, iAccessoryID, iPropertyIndex, iCounterAfter );
1068+
pMarineNames->OnStrangeDeviceTierNotification( pOwner, pNPC, instance.m_iItemDefID, iAccessoryID, iPropertyIndex, iCountForTierAfter );
10681069
}
10691070
#else
10701071
CReliableBroadcastRecipientFilter filter;
@@ -1075,7 +1076,7 @@ static class CRD_Inventory_Manager final : public CAutoGameSystem, public CGameE
10751076
WRITE_UBITLONG( instance.m_iItemDefID, RD_ITEM_ID_BITS );
10761077
WRITE_UBITLONG( iAccessoryID, RD_ITEM_ACCESSORY_BITS );
10771078
WRITE_UBITLONG( iPropertyIndex, 2 ); // 1 extra bit for possible future use
1078-
WRITE_BITS( &iCounterAfter, 64 );
1079+
WRITE_BITS( &iCountForTierAfter, 64 );
10791080
MessageEnd();
10801081
#endif
10811082
}

0 commit comments

Comments
 (0)