Skip to content

Commit

Permalink
Remove MANGOS definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Foereaper committed Jul 24, 2024
1 parent df7c0ae commit f9efe6e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 22 deletions.
4 changes: 2 additions & 2 deletions ElunaConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* Please see the included DOCS/LICENSE.md for more information
*/

#if defined TRINITY || defined MANGOS
#if defined TRINITY
#include "Config.h"
#elif defined CMANGOS || defined VMANGOS
#else
#include "Config/Config.h"
#endif
#include "ElunaConfig.h"
Expand Down
6 changes: 1 addition & 5 deletions ElunaCreatureAI.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ struct ElunaCreatureAI : NativeScriptedAI

if (!me->GetEluna()->UpdateAI(me, diff))
{
#if defined MANGOS
if (!me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PASSIVE))
#else
if (!me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_NPC))
#endif
NativeScriptedAI::UpdateAI(diff);
}
}
Expand Down Expand Up @@ -269,7 +265,7 @@ struct ElunaCreatureAI : NativeScriptedAI
}
#endif

#if defined MANGOS || defined CMANGOS
#if defined CMANGOS
#undef me
#endif
};
Expand Down
8 changes: 0 additions & 8 deletions ElunaIncludes.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,6 @@ typedef Opcodes OpcodesList;
* Note: if you add or change a CORE_NAME or CORE_VERSION #define,
* please update LuaGlobalFunctions::GetCoreName or LuaGlobalFunctions::GetCoreVersion documentation example string.
*/
#if defined MANGOS
#define CORE_NAME "MaNGOS"
#define CORE_VERSION REVISION_NR
#if EXPANSION == CATA
#define NUM_MSG_TYPES NUM_OPCODE_HANDLERS
#endif
#endif

#if defined CMANGOS
#define CORE_NAME "cMaNGOS"
#define CORE_VERSION REVISION_DATE " " REVISION_ID
Expand Down
7 changes: 2 additions & 5 deletions ElunaUtility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
#include "Server/DBCStores.h"
#include "Util/Timer.h"
#endif
#if defined MANGOS
#include "Timer.h"
#endif

uint32 ElunaUtil::GetCurrTime()
{
#if !defined CMANGOS && !defined VMANGOS
#if defined TRINITY
return getMSTime();
#else
return WorldTimer::getMSTime();
Expand All @@ -34,7 +31,7 @@ uint32 ElunaUtil::GetCurrTime()

uint32 ElunaUtil::GetTimeDiff(uint32 oldMSTime)
{
#if !defined CMANGOS && !defined VMANGOS
#if defined TRINITY
return GetMSTimeDiffToNow(oldMSTime);
#else
return WorldTimer::getMSTimeDiff(oldMSTime, WorldTimer::getMSTime());
Expand Down
2 changes: 1 addition & 1 deletion ElunaUtility.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <mutex>
#include <memory>

#if !defined MANGOS && !defined VMANGOS
#if !defined VMANGOS
#define USING_BOOST
#endif

Expand Down
2 changes: 1 addition & 1 deletion LuaEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct ItemTemplate;
typedef Battleground BattleGround;
typedef BattlegroundTypeId BattleGroundTypeId;
typedef InstanceScript InstanceData;
#else // MANGOS && CMANGOS && VMANGOS
#else
class InstanceData;
struct ItemPrototype;
struct SpellEntry;
Expand Down

0 comments on commit f9efe6e

Please sign in to comment.