File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ https://github.com/nwnxee/unified/compare/build8193.35.40...HEAD
52
52
### Fixed
53
53
- Experimental: PlayerHitpointsAsPercentage: added the new argument nMessageLimit to SendServerToPlayerGameObjUpdate hook
54
54
- Reveal: Fixed Reveal plugin always revealing all PCs regardless of plugin usage.
55
+ - Area: RotateArea's 'NewOrientation' corrected for NWN bearings, correcting direction of objects within the area after 90 or 270 degree rotation.
55
56
56
57
## 8193.35.40
57
58
https://github.com/nwnxee/unified/compare/build8193.35.37...build8193.35.40
Original file line number Diff line number Diff line change @@ -1044,7 +1044,7 @@ NWNX_EXPORT ArgumentStack RotateArea(ArgumentStack&& args)
1044
1044
case 1 :
1045
1045
{
1046
1046
vOrientation.x = (std::cos (std::acos (vOrientation.x ) - (M_PI/2 )));// less half-radian
1047
- vOrientation.y = (std::sin (std::asin (vOrientation.y ) - (M_PI/2 )));
1047
+ vOrientation.y = (std::sin (std::asin (vOrientation.y ) + (M_PI/2 )));
1048
1048
break ;
1049
1049
}
1050
1050
case 2 :
@@ -1056,7 +1056,7 @@ NWNX_EXPORT ArgumentStack RotateArea(ArgumentStack&& args)
1056
1056
case 3 :
1057
1057
{
1058
1058
vOrientation.x = (std::cos (std::acos (vOrientation.x ) + (M_PI/2 )));// Add half-radian
1059
- vOrientation.y = (std::sin (std::asin (vOrientation.y ) + (M_PI/2 )));
1059
+ vOrientation.y = (std::sin (std::asin (vOrientation.y ) - (M_PI/2 )));
1060
1060
break ;
1061
1061
}
1062
1062
}
You can’t perform that action at this time.
0 commit comments