mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
fix styling
This commit is contained in:
parent
825f07accc
commit
2ef9df61f8
1 changed files with 2 additions and 2 deletions
|
@ -1380,9 +1380,9 @@ void Player::teleportQuery( uint16_t aetheryteId, bool useAetheryteTicket )
|
||||||
|
|
||||||
// calculate cost - does not apply for favorite points or homepoints
|
// calculate cost - does not apply for favorite points or homepoints
|
||||||
// if using aetheryte ticket, cost is 0
|
// 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::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
|
// cap at 999 gil
|
||||||
cost = std::min< uint16_t >( 999, cost );
|
cost = std::min< uint16_t >( 999, cost );
|
||||||
|
|
Loading…
Add table
Reference in a new issue