Skip to content

Commit

Permalink
- use map axes in bad sound position/velocity warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed May 13, 2018
1 parent 142368d commit 8a6ae50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/s_sound.cpp
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8a6ae50

Please sign in to comment.