Merge pull request #183 from ElunaLuaEngine/mangosupdate

Fix some mangos and cmangos compatibility
This commit is contained in:
Rochet2
2016-01-24 23:21:30 +02:00
4 changed files with 7 additions and 2 deletions

View File

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

View File

@@ -44,7 +44,8 @@ namespace LuaGlobalFunctions
* Returns emulator version
*
* - 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
*/

View File

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

View File

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