mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 18:05:43 +00:00
CMoneyMessages::RegisterOne v2
This commit is contained in:
parent
31000fb4f0
commit
e9288dd005
1 changed files with 16 additions and 12 deletions
|
@ -1092,10 +1092,13 @@ void
|
|||
CMoneyMessages::RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8 bGreen, uint8 bBlue, float fSize, float fOpacity)
|
||||
{
|
||||
uint32 i;
|
||||
for(i = 0; i < NUMMONEYMESSAGES; i++)
|
||||
if(aMoneyMessages[i].m_nTimeRegistered != 0) break;
|
||||
if(i == NUMMONEYMESSAGES) return;
|
||||
#ifdef FIX_BUGS
|
||||
for(i = 0; i < NUMMONEYMESSAGES && aMoneyMessages[i].m_nTimeRegistered != 0; i++);
|
||||
#else
|
||||
for(i = 0; aMoneyMessages[i].m_nTimeRegistered != 0 && i < NUMMONEYMESSAGES; i++);
|
||||
#endif
|
||||
|
||||
if(i < NUMMONEYMESSAGES) {
|
||||
// Add data of this money message to the array
|
||||
AsciiToUnicode(pText, aMoneyMessages[i].m_aText);
|
||||
|
||||
|
@ -1107,6 +1110,7 @@ CMoneyMessages::RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8
|
|||
aMoneyMessages[i].m_fSize = fSize;
|
||||
aMoneyMessages[i].m_fOpacity = fOpacity;
|
||||
}
|
||||
}
|
||||
|
||||
CRGBA FoamColour(255, 255, 255, 255);
|
||||
unsigned int CSpecialParticleStuff::BoatFromStart;
|
||||
|
|
Loading…
Reference in a new issue