diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-17 11:40:50 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-17 11:40:50 +0200 |
commit | 07c46936c334d4c620bc0a5866fb10ec0f6abc78 (patch) | |
tree | 287c5b46d39353c841aea71ccd933de7b16e30a9 /src/render | |
parent | Full C3dMarkers (diff) | |
download | re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.tar re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.tar.gz re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.tar.bz2 re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.tar.lz re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.tar.xz re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.tar.zst re3-07c46936c334d4c620bc0a5866fb10ec0f6abc78.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/SpecialFX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/SpecialFX.cpp b/src/render/SpecialFX.cpp index 37bc306f..09881831 100644 --- a/src/render/SpecialFX.cpp +++ b/src/render/SpecialFX.cpp @@ -179,7 +179,7 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size C3dMarker *pMarker;
pMarker = nil;
- float dist = sqrt((pos.x - FindPlayerCentreOfWorld(0).x) * (pos.x - FindPlayerCentreOfWorld(0).x) + (pos.y - FindPlayerCentreOfWorld(0).y) * (pos.y - FindPlayerCentreOfWorld(0).y));
+ float dist = Sqrt((pos.x - FindPlayerCentreOfWorld(0).x) * (pos.x - FindPlayerCentreOfWorld(0).x) + (pos.y - FindPlayerCentreOfWorld(0).y) * (pos.y - FindPlayerCentreOfWorld(0).y));
if (type != MARKERTYPE_ARROW && type != MARKERTYPE_CYLINDER) return nil;
@@ -234,7 +234,7 @@ C3dMarkers::PlaceMarker(uint32 identifier, uint16 type, CVector &pos, float size pMarker->m_Color.alpha = a;
}
}
- float someSin = sinf(TWOPI * (float)((pMarker->m_nPulsePeriod - 1) & (CTimer::GetTimeInMilliseconds() - pMarker->m_nStartTime)) / (float)pMarker->m_nPulsePeriod);
+ float someSin = Sin(TWOPI * (float)((pMarker->m_nPulsePeriod - 1) & (CTimer::GetTimeInMilliseconds() - pMarker->m_nStartTime)) / (float)pMarker->m_nPulsePeriod);
pMarker->m_fSize = pMarker->m_fStdSize - pulseFraction * pMarker->m_fStdSize * someSin;
if (type == MARKERTYPE_ARROW) {
|