mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
converting some remaining abs & fabs to use std::abs, fixing some warnings
This commit is contained in:
+2
-2
@@ -8103,9 +8103,9 @@ void Client::SetFactionLevel(uint32 char_id, uint32 npc_id, uint8 char_class, ui
|
||||
{
|
||||
//The ole switcheroo
|
||||
if (npc_value[i] > 0)
|
||||
npc_value[i] = -abs(npc_value[i]);
|
||||
npc_value[i] = -std::abs(npc_value[i]);
|
||||
else if (npc_value[i] < 0)
|
||||
npc_value[i] = abs(npc_value[i]);
|
||||
npc_value[i] = std::abs(npc_value[i]);
|
||||
}
|
||||
|
||||
// Adjust the amount you can go up or down so the resulting range
|
||||
|
||||
Reference in New Issue
Block a user