Skip to content

Commit

Permalink
Fix relative_direction calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEady committed Nov 13, 2023
1 parent 9d94ade commit 860b654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pol-core/pol/miscmsg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ void handle_msg_BF( Client* client, PKTBI_BF* msg )
}

auto relative_direction =
static_cast<Core::UFACING>( ( msg->boatmove.direction + boat->boat_facing() ) & 7 );
static_cast<Core::UFACING>( ( msg->boatmove.direction - boat->boat_facing() + 8 ) & 7 );

process->uoexec().signal_event( new Module::BoatMovementEvent(
chr, msg->boatmove.speed, msg->boatmove.direction, relative_direction ) );
Expand Down

0 comments on commit 860b654

Please sign in to comment.