mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-25 21:21:08 +03:00
use FLT_MAX instead of 1e+30, remove a busted two lines of code
This commit is contained in:
parent
fa3d686067
commit
a5770191bb
@ -263,17 +263,12 @@ void CParticleSystem::ReadControlPointEnts(void)
|
||||
{
|
||||
for (int i = 0; i < kMAXCONTROLPOINTS; ++i)
|
||||
{
|
||||
if (UsesCoordinates()) {
|
||||
float vecCoords[3];
|
||||
if (UsesCoordinates()) {
|
||||
float vecCoords[3];
|
||||
// cast str to vector, add vector to array
|
||||
const char* pszVector = STRING(m_iszControlPointNames[i]);
|
||||
UTIL_StringToVector(vecCoords, pszVector);
|
||||
m_vControlPointVecs.Set(i, Vector(vecCoords[0], vecCoords[1], vecCoords[2]));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
else{
|
||||
if (m_iszControlPointNames[i] == NULL_STRING)
|
||||
|
@ -2854,7 +2854,7 @@ void CInteractableProp::Use(CBaseEntity *pActivator, CBaseEntity *pCaller, USE_T
|
||||
}
|
||||
|
||||
if (m_flCooldown == -1 && !m_bLocked){
|
||||
m_flCooldownTime = 1e+30; // yeah we're not going to hit this any time soon
|
||||
m_flCooldownTime = FLT_MAX; // yeah we're not going to hit this any time soon
|
||||
}
|
||||
else if (m_flCooldown == -1){
|
||||
m_flCooldownTime = gpGlobals->curtime + 1.0f; // 1s cooldown if locked
|
||||
|
Loading…
x
Reference in New Issue
Block a user