diff --git a/dlls/monsters.cpp b/dlls/monsters.cpp index 6b37f25..24c2c46 100644 --- a/dlls/monsters.cpp +++ b/dlls/monsters.cpp @@ -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; } diff --git a/dlls/nihilanth.cpp b/dlls/nihilanth.cpp index e17b178..c0ff0e3 100644 --- a/dlls/nihilanth.cpp +++ b/dlls/nihilanth.cpp @@ -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); } } diff --git a/dlls/talkmonster.cpp b/dlls/talkmonster.cpp index 92254ee..5ff9c72 100644 --- a/dlls/talkmonster.cpp +++ b/dlls/talkmonster.cpp @@ -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(); diff --git a/pm_shared/pm_shared.cpp b/pm_shared/pm_shared.cpp index 9135615..ecdc88d 100644 --- a/pm_shared/pm_shared.cpp +++ b/pm_shared/pm_shared.cpp @@ -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); }