From 5132119812a8acc90179ba5cce90dad3ae512cb6 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Tue, 8 Jan 2019 16:20:14 +0200 Subject: [PATCH] - increased range of valid sound positions and velocities https://forum.zdoom.org/viewtopic.php?t=61420 --- 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 adffad34cc..1423b57b87 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -824,7 +824,7 @@ static bool Validate(const FVector3 &value, const float limit, const char *const static bool ValidatePosVel(const AActor *actor, const FVector3 &pos, const FVector3 &vel) { // The actual limit for map coordinates - static const float POSITION_LIMIT = 32768.f; + static const float POSITION_LIMIT = 1024.f * 1024.f; const bool valid = Validate(pos, POSITION_LIMIT, "position", actor); // The maximum velocity is enough to travel through entire map in one tic