Prevent client update while on boat if boat turning (#1343)

Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
Paul CoeneandNoudess authored and GitHub committed 2021-05-10 01:15:38 -05:00
1 parent 0758250ad1
commit b335568bf9
4 files changed
+8

No files matched your search

+2
View File
@@ -4474,6 +4474,8 @@ void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app) {
LogError("Can't find boat for client position offset.");
}
else {
if (boat->turning) return;
// Calculate angle from boat heading to EQ heading
double theta = std::fmod(((boat->GetHeading() * 360.0) / 512.0),360.0);
double thetar = (theta * M_PI) / 180.0;