mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix some mangos compatibility
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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 },
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user