Eluna: fix compatibility with new guid changes, fix bg methods for cata

This commit is contained in:
Rochet2
2014-09-20 17:27:42 +03:00
parent ea6f6bcff2
commit 16185423ab
3 changed files with 23 additions and 10 deletions

View File

@@ -77,7 +77,11 @@ namespace LuaBattleGround
*/
int GetEndTime(lua_State* L, BattleGround* bg)
{
#ifdef CATA
Eluna::Push(L, bg->GetRemainingTime());
#else
Eluna::Push(L, bg->GetEndTime());
#endif
return 1;
}