Fix and unify GetCoreVersion

Fixed for cmangos (tbc)
This commit is contained in:
Rochet2
2015-09-06 14:01:47 +03:00
parent c40d16c9f8
commit 581c176da1
2 changed files with 6 additions and 11 deletions

View File

@@ -52,12 +52,7 @@
#include "AggressorAI.h"
#include "BattleGroundMgr.h"
#include "SQLStorages.h"
#endif
#ifdef MANGOS
#include "revision.h"
#elif defined(CMANGOS)
#include "revision_nr.h"
#endif
#if (!defined(TBC) && !defined(CLASSIC))
@@ -73,17 +68,17 @@ typedef Opcodes OpcodesList;
#endif
/*
* Note: if you add or change a CORE_NAME #define,
* please update LuaGlobalFunctions::GetCoreName docstring.
* Note: if you add or change a CORE_NAME or CORE_VERSION #define,
* please update LuaGlobalFunctions::GetCoreName or LuaGlobalFunctions::GetCoreVersion documentation example string.
*/
#ifdef MANGOS
#define CORE_NAME "MaNGOS"
#define CORE_VERSION REVISION_NR
#define CORE_VERSION REVISION_DATE " " REVISION_TIME
#endif
#ifdef CMANGOS
#define CORE_NAME "cMaNGOS"
#define CORE_VERSION REVISION_NR
#define CORE_VERSION REVISION_DATE " " REVISION_TIME
#endif
#ifdef TRINITY

View File

@@ -43,8 +43,8 @@ namespace LuaGlobalFunctions
/**
* Returns emulator version
*
* - For TrinityCore returns the date of the last revision, e.g. `2014-08-13 17:27:22 +0300`
* - For cMaNGOS/MaNGOS returns the revision number, e.g. `12708`
* - For TrinityCore returns the date of the last revision, e.g. `2015-08-26 22:53:12 +0300`
* - For cMaNGOS/MaNGOS returns the date and time of the last revision, e.g. `2015-09-06 13:18:50`
*
* @return string version
*/