1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2024-12-24 17:55:29 +00:00
This commit is contained in:
Sergeanur 2019-10-03 13:31:31 +03:00
parent 5b119ca78d
commit 6bed421ce8

View file

@ -14,10 +14,10 @@ void
CMoneyMessage::Render()
{
const float MAX_SCALE = 4.0f;
uint32 dwLifeTime = CTimer::GetTimeInMilliseconds() - m_nTimeRegistered;
if (dwLifeTime >= MONEY_MESSAGE_LIFETIME_MS) m_nTimeRegistered = 0;
uint32 nLifeTime = CTimer::GetTimeInMilliseconds() - m_nTimeRegistered;
if (nLifeTime >= MONEY_MESSAGE_LIFETIME_MS) m_nTimeRegistered = 0;
else {
float fLifeTime = (float)dwLifeTime / MONEY_MESSAGE_LIFETIME_MS;
float fLifeTime = (float)nLifeTime / MONEY_MESSAGE_LIFETIME_MS;
RwV3d vecOut;
float fDistX, fDistY;
if (CSprite::CalcScreenCoors(m_vecPosition + CVector(0.0f, 0.0f, fLifeTime), &vecOut, &fDistX, &fDistY, true)) {