Skip to content

Commit

Permalink
fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pinapelz committed May 18, 2024
1 parent 825f07a commit 2ef9df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/world/Actor/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1380,9 +1380,9 @@ void Player::teleportQuery( uint16_t aetheryteId, bool useAetheryteTicket )

// calculate cost - does not apply for favorite points or homepoints
// if using aetheryte ticket, cost is 0
auto cost = useAetheryteTicket ? 0 : static_cast<uint16_t>(
auto cost = useAetheryteTicket ? 0 : static_cast< uint16_t > (
( std::sqrt( std::pow( fromAetheryte->data().CostPosX - targetAetheryte->data().CostPosX, 2 ) +
std::pow( fromAetheryte->data().CostPosY - targetAetheryte->data().CostPosY, 2 )) / 2 ) + 100 );
std::pow( fromAetheryte->data().CostPosY - targetAetheryte->data().CostPosY, 2 ) ) / 2 ) + 100 );

// cap at 999 gil
cost = std::min< uint16_t >( 999, cost );
Expand Down

0 comments on commit 2ef9df6

Please sign in to comment.