summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-03 12:31:31 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-03 12:31:31 +0200
commit6bed421ce86a83709fde4e90f6101ad2b3314053 (patch)
tree8746448ed97ad2db90dd2d3e6c3ae983d0f49a96
parentAdded missed config.h (diff)
downloadre3-6bed421ce86a83709fde4e90f6101ad2b3314053.tar
re3-6bed421ce86a83709fde4e90f6101ad2b3314053.tar.gz
re3-6bed421ce86a83709fde4e90f6101ad2b3314053.tar.bz2
re3-6bed421ce86a83709fde4e90f6101ad2b3314053.tar.lz
re3-6bed421ce86a83709fde4e90f6101ad2b3314053.tar.xz
re3-6bed421ce86a83709fde4e90f6101ad2b3314053.tar.zst
re3-6bed421ce86a83709fde4e90f6101ad2b3314053.zip
-rw-r--r--src/render/MoneyMessages.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/MoneyMessages.cpp b/src/render/MoneyMessages.cpp
index c18c7a8a..d80be276 100644
--- a/src/render/MoneyMessages.cpp
+++ b/src/render/MoneyMessages.cpp
@@ -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)) {