[HL25] Backport several float specifiers
This commit is contained in:
parent
1fbb2589d7
commit
203f7d86fa
4 changed files with 5 additions and 5 deletions
|
@ -1980,7 +1980,7 @@ void CBaseMonster::MoveExecute(CBaseEntity* pTargetEnt, const Vector& vecDir, fl
|
|||
while (flTotal > 0.001)
|
||||
{
|
||||
// don't walk more than 16 units or stairs stop working
|
||||
flStep = V_min(16.0, flTotal);
|
||||
flStep = V_min(16.0f, flTotal);
|
||||
UTIL_MoveToOrigin(ENT(pev), m_Route[m_iRouteIndex].vecLocation, flStep, MOVE_NORMAL);
|
||||
flTotal -= flStep;
|
||||
}
|
||||
|
|
|
@ -890,7 +890,7 @@ void CNihilanth::HuntThink()
|
|||
}
|
||||
else
|
||||
{
|
||||
m_flAdj = V_min(m_flAdj + 10, 1000);
|
||||
m_flAdj = V_min(m_flAdj + 10.0f, 1000.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -403,11 +403,11 @@ void CTalkMonster::StartTask(Task_t* pTask)
|
|||
|
||||
if (yaw < 0)
|
||||
{
|
||||
pev->ideal_yaw = V_min(yaw + 45, 0) + pev->angles.y;
|
||||
pev->ideal_yaw = V_min(yaw + 45.0f, 0.0f) + pev->angles.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
pev->ideal_yaw = V_max(yaw - 45, 0) + pev->angles.y;
|
||||
pev->ideal_yaw = V_max(yaw - 45.0f, 0.0f) + pev->angles.y;
|
||||
}
|
||||
}
|
||||
TaskComplete();
|
||||
|
|
|
@ -2913,7 +2913,7 @@ void PM_DropPunchAngle(Vector& punchangle)
|
|||
|
||||
len = VectorNormalize(punchangle);
|
||||
len -= (10.0 + len * 0.5) * pmove->frametime;
|
||||
len = V_max(len, 0.0);
|
||||
len = V_max(len, 0.0f);
|
||||
VectorScale(punchangle, len, punchangle);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue