From 8a6ae503be9f4ab0175f562db835740420a01407 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 13 May 2018 10:13:59 +0300 Subject: [PATCH] - use map axes in bad sound position/velocity warning https://forum.zdoom.org/viewtopic.php?t=60578 --- src/s_sound.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/s_sound.cpp b/src/s_sound.cpp index cac01b1113..9e2830cd9b 100644 --- a/src/s_sound.cpp +++ b/src/s_sound.cpp @@ -824,7 +824,8 @@ static bool Validate(const FVector3 &value, const float limit, const char *const if (!valid) { - Printf(TEXTCOLOR_RED "Invalid sound %s " TEXTCOLOR_WHITE "(%f, %f, %f)", name, value.X, value.Y, value.Z); + // Sound position and velocity have Y and Z axes swapped comparing to map coordinate system + Printf(TEXTCOLOR_RED "Invalid sound %s " TEXTCOLOR_WHITE "(%f, %f, %f)", name, value.X, value.Z, value.Y); if (actor == nullptr) {