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

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r669 \cu(Tue 6 Dec 19:46:11 CET 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r669 \cu(2022-12-06 19:46:11)\c-";
SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r670 \cu(Tue 6 Dec 21:27:50 CET 2022)\c-";
SWWM_SHORTVER="\cw1.3pre r670 \cu(2022-12-06 21:27:50)\c-";

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;