mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
fix compilation errors with gcc 6.1.1 on Arch Linux
This commit is contained in:
parent
a8c6c77309
commit
ba8d82efaf
|
@ -344,7 +344,7 @@ functions:
|
||||||
GetNormalComponent( vDistance/fDistance, vHitNormal, ese.vDirection);
|
GetNormalComponent( vDistance/fDistance, vHitNormal, ese.vDirection);
|
||||||
FLOAT fLength = ese.vDirection.Length();
|
FLOAT fLength = ese.vDirection.Length();
|
||||||
fLength = Clamp( fLength*3, 1.0f, 3.0f);
|
fLength = Clamp( fLength*3, 1.0f, 3.0f);
|
||||||
fDistance = Clamp( log10(fDistance), 0.5, 2.0);
|
fDistance = Clamp( log10(fDistance), 0.5f, 2.0f);
|
||||||
ese.vStretch = FLOAT3D( fDistance, fLength*fDistance, 1.0f);
|
ese.vStretch = FLOAT3D( fDistance, fLength*fDistance, 1.0f);
|
||||||
SpawnEffect(vHitPoint, ese);
|
SpawnEffect(vHitPoint, ese);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4587,7 +4587,7 @@ void TeleportPlayer(enum WorldLinkType EwltType)
|
||||||
TIME tmLevelTime = _pTimer->CurrentTick()-m_tmLevelStarted;
|
TIME tmLevelTime = _pTimer->CurrentTick()-m_tmLevelStarted;
|
||||||
m_psLevelStats.ps_tmTime = tmLevelTime;
|
m_psLevelStats.ps_tmTime = tmLevelTime;
|
||||||
m_psGameStats.ps_tmTime += tmLevelTime;
|
m_psGameStats.ps_tmTime += tmLevelTime;
|
||||||
FLOAT fTimeDelta = ClampDn(floor(m_tmEstTime)-floor(tmLevelTime), 0.0);
|
FLOAT fTimeDelta = ClampDn(floor(m_tmEstTime)-floor(tmLevelTime), 0.0f);
|
||||||
m_iTimeScore = floor(fTimeDelta*100.0f);
|
m_iTimeScore = floor(fTimeDelta*100.0f);
|
||||||
m_psLevelStats.ps_iScore+=m_iTimeScore;
|
m_psLevelStats.ps_iScore+=m_iTimeScore;
|
||||||
m_psGameStats.ps_iScore+=m_iTimeScore;
|
m_psGameStats.ps_iScore+=m_iTimeScore;
|
||||||
|
|
|
@ -386,7 +386,7 @@ void SpawnHitTypeEffect(CEntity *pen, enum BulletHitType bhtType, BOOL bSound, F
|
||||||
GetNormalComponent( vDistance/fDistance, vHitNormal, ese.vDirection);
|
GetNormalComponent( vDistance/fDistance, vHitNormal, ese.vDirection);
|
||||||
FLOAT fLength = ese.vDirection.Length();
|
FLOAT fLength = ese.vDirection.Length();
|
||||||
fLength = Clamp( fLength*3, 1.0f, 3.0f);
|
fLength = Clamp( fLength*3, 1.0f, 3.0f);
|
||||||
fDistance = Clamp( log10(fDistance), 0.5, 2.0);
|
fDistance = Clamp( log10(fDistance), 0.5f, 2.0f);
|
||||||
ese.vStretch = FLOAT3D( fDistance, fLength*fDistance, 1.0f);
|
ese.vStretch = FLOAT3D( fDistance, fLength*fDistance, 1.0f);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -5380,7 +5380,7 @@ functions:
|
||||||
TIME tmLevelTime = _pTimer->CurrentTick()-m_tmLevelStarted;
|
TIME tmLevelTime = _pTimer->CurrentTick()-m_tmLevelStarted;
|
||||||
m_psLevelStats.ps_tmTime = tmLevelTime;
|
m_psLevelStats.ps_tmTime = tmLevelTime;
|
||||||
m_psGameStats.ps_tmTime += tmLevelTime;
|
m_psGameStats.ps_tmTime += tmLevelTime;
|
||||||
FLOAT fTimeDelta = ClampDn(floor(m_tmEstTime)-floor(tmLevelTime), 0.0);
|
FLOAT fTimeDelta = ClampDn(floor(m_tmEstTime)-floor(tmLevelTime), 0.0f);
|
||||||
m_iTimeScore = (INDEX) floor(fTimeDelta*100.0f);
|
m_iTimeScore = (INDEX) floor(fTimeDelta*100.0f);
|
||||||
m_psLevelStats.ps_iScore+=m_iTimeScore;
|
m_psLevelStats.ps_iScore+=m_iTimeScore;
|
||||||
m_psGameStats.ps_iScore+=m_iTimeScore;
|
m_psGameStats.ps_iScore+=m_iTimeScore;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user