Fix typo in CalcYBeam.

This commit is contained in:
Mari the Deer 2022-12-06 21:27:50 +01:00
commit d3251897db
2 changed files with 3 additions and 3 deletions

View file

@ -1483,7 +1483,7 @@ Class SWWMUtility
dir *= level.pixelstretch;
double len = dir.length();
dir /= len;
double angle = atan2(dir.y,dir.z);
double angle = atan2(dir.y,dir.x);
double pitch = asin(-dir.z)+90;
double yscale = dist*len;
return angle, pitch, yscale;