mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Prevent client update while on boat if boat turning (#1343)
Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user