mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-30 00:53:46 +00:00
refactor(Core/Misc): abs() to std::abs() (#9789)
This commit is contained in:
@@ -216,10 +216,10 @@ public:
|
||||
if (ArchavonDeath && EmalonDeath && KoralonDeath)
|
||||
{
|
||||
// instance difficulty check is already done in db (achievement_criteria_data)
|
||||
// int() for Visual Studio, compile errors with abs(time_t)
|
||||
return (abs(int(ArchavonDeath - EmalonDeath)) < MINUTE && \
|
||||
abs(int(EmalonDeath - KoralonDeath)) < MINUTE && \
|
||||
abs(int(KoralonDeath - ArchavonDeath)) < MINUTE);
|
||||
// int() for Visual Studio, compile errors with std::abs(time_t)
|
||||
return (std::abs(int(ArchavonDeath - EmalonDeath)) < MINUTE && \
|
||||
std::abs(int(EmalonDeath - KoralonDeath)) < MINUTE && \
|
||||
std::abs(int(KoralonDeath - ArchavonDeath)) < MINUTE);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user