Fix some mangos compatibility

This commit is contained in:
Rochet2
2016-01-24 19:29:42 +02:00
parent cc5f623b5c
commit 33e3bf9de2
4 changed files with 7 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ typedef Opcodes OpcodesList;
*/ */
#ifdef MANGOS #ifdef MANGOS
#define CORE_NAME "MaNGOS" #define CORE_NAME "MaNGOS"
#define CORE_VERSION REVISION_DATE " " REVISION_TIME #define CORE_VERSION REVISION_NR
#endif #endif
#ifdef CMANGOS #ifdef CMANGOS

View File

@@ -44,7 +44,8 @@ namespace LuaGlobalFunctions
* Returns emulator version * Returns emulator version
* *
* - For TrinityCore returns the date of the last revision, e.g. `2015-08-26 22:53:12 +0300` * - 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` * - For cMaNGOS returns the date and time of the last revision, e.g. `2015-09-06 13:18:50`
* - for MaNGOS returns the version number as string, e.g. `21000`
* *
* @return string version * @return string version
*/ */

View File

@@ -735,7 +735,9 @@ ElunaRegister<Player> PlayerMethods[] =
{ "GroupInvite", &LuaPlayer::GroupInvite }, { "GroupInvite", &LuaPlayer::GroupInvite },
{ "GroupCreate", &LuaPlayer::GroupCreate }, { "GroupCreate", &LuaPlayer::GroupCreate },
{ "SendCinematicStart", &LuaPlayer::SendCinematicStart }, { "SendCinematicStart", &LuaPlayer::SendCinematicStart },
#if !defined(CLASSIC) && !defined(TBC)
{ "SendMovieStart", &LuaPlayer::SendMovieStart }, { "SendMovieStart", &LuaPlayer::SendMovieStart },
#endif
#ifdef CLASSIC #ifdef CLASSIC
{ "UpdateHonor", &LuaPlayer::UpdateHonor }, { "UpdateHonor", &LuaPlayer::UpdateHonor },
{ "ResetHonor", &LuaPlayer::ResetHonor }, { "ResetHonor", &LuaPlayer::ResetHonor },

View File

@@ -3939,6 +3939,7 @@ namespace LuaPlayer
return 0; return 0;
} }
#if !defined(CLASSIC) && !defined(TBC)
/** /**
* Starts a movie for the [Player] * Starts a movie for the [Player]
* *
@@ -3951,6 +3952,7 @@ namespace LuaPlayer
player->SendMovieStart(MovieId); player->SendMovieStart(MovieId);
return 0; return 0;
} }
#endif
/*int BindToInstance(Eluna* E, lua_State* L, Player* player) /*int BindToInstance(Eluna* E, lua_State* L, Player* player)
{ {