Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge branch 'miami' of github.com:GTAmodding/re3 into miami
- Loading branch information
Showing
with
18 additions
and
14 deletions.
-
+18
−14
src/render/SpecialFX.cpp
There are no files selected for viewing
|
|
@@ -1385,20 +1385,24 @@ void |
|
CMoneyMessages::RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8 bGreen, uint8 bBlue, float fSize, float fOpacity)
|
|
CMoneyMessages::RegisterOne(CVector vecPos, const char *pText, uint8 bRed, uint8 bGreen, uint8 bBlue, float fSize, float fOpacity)
|
|
{
|
|
{
|
|
uint32 i;
|
|
uint32 i;
|
|
for(i = 0; i < NUMMONEYMESSAGES; i++)
|
|
#ifdef FIX_BUGS
|
|
if(aMoneyMessages[i].m_nTimeRegistered != 0) break;
|
|
for(i = 0; i < NUMMONEYMESSAGES && aMoneyMessages[i].m_nTimeRegistered != 0; i++);
|
|
if(i == NUMMONEYMESSAGES) return;
|
|
#else
|
|
|
|
for(i = 0; aMoneyMessages[i].m_nTimeRegistered != 0 && i < NUMMONEYMESSAGES; i++);
|
|
// Add data of this money message to the array
|
|
#endif
|
|
AsciiToUnicode(pText, aMoneyMessages[i].m_aText);
|
|
|
|
|
|
if(i < NUMMONEYMESSAGES) {
|
|
aMoneyMessages[i].m_nTimeRegistered = CTimer::GetTimeInMilliseconds();
|
|
// Add data of this money message to the array
|
|
aMoneyMessages[i].m_vecPosition = vecPos;
|
|
AsciiToUnicode(pText, aMoneyMessages[i].m_aText);
|
|
aMoneyMessages[i].m_Colour.red = bRed;
|
|
|
|
aMoneyMessages[i].m_Colour.green = bGreen;
|
|
aMoneyMessages[i].m_nTimeRegistered = CTimer::GetTimeInMilliseconds();
|
|
aMoneyMessages[i].m_Colour.blue = bBlue;
|
|
aMoneyMessages[i].m_vecPosition = vecPos;
|
|
aMoneyMessages[i].m_fSize = fSize;
|
|
aMoneyMessages[i].m_Colour.red = bRed;
|
|
aMoneyMessages[i].m_fOpacity = fOpacity;
|
|
aMoneyMessages[i].m_Colour.green = bGreen;
|
|
|
|
aMoneyMessages[i].m_Colour.blue = bBlue;
|
|
|
|
aMoneyMessages[i].m_fSize = fSize;
|
|
|
|
aMoneyMessages[i].m_fOpacity = fOpacity;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
CRGBA FoamColour(255, 255, 255, 255);
|
|
CRGBA FoamColour(255, 255, 255, 255);
|
|
|
|