From 140ad241c4f4434012122e3937d8daa4dcf817f8 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 30 Mar 2018 10:42:22 +0300 Subject: [PATCH] Adjusted validation limit for sound velocity again :( https://forum.zdoom.org/viewtopic.php?t=59979 --- src/s_sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.cpp b/src/s_sound.cpp index a2eb8d731..a41663c3a 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -853,7 +853,7 @@ static bool ValidatePosVel(const AActor *actor, const FVector3 &pos, const FVect const bool valid = Validate(pos, POSITION_LIMIT, "position", actor); // The maximum velocity is enough to travel through entire map in one tic - static const float VELOCITY_LIMIT = 2 * sqrtf(2.f) * POSITION_LIMIT * TICRATE; + static const float VELOCITY_LIMIT = 2 * POSITION_LIMIT * TICRATE; return Validate(vel, VELOCITY_LIMIT, "velocity", actor) && valid; }