mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
Merge 4a102c6ace into 22eb04e495
This commit is contained in:
commit
a167ffff57
@ -47,6 +47,7 @@ float CGlueMgr::m_aspect;
|
||||
bool CGlueMgr::m_authenticated;
|
||||
const CharacterSelectionDisplay* CGlueMgr::m_characterInfo;
|
||||
int32_t CGlueMgr::m_clientKickReason;
|
||||
int32_t CGlueMgr::m_contestAccepted = 1; // TODO
|
||||
char CGlueMgr::m_currentScreen[64];
|
||||
EffectDeath* CGlueMgr::m_deathEffect;
|
||||
int32_t CGlueMgr::m_disconnectPending;
|
||||
|
||||
@ -41,6 +41,7 @@ class CGlueMgr {
|
||||
static bool m_authenticated;
|
||||
static const CharacterSelectionDisplay* m_characterInfo;
|
||||
static int32_t m_clientKickReason;
|
||||
static int32_t m_contestAccepted;
|
||||
static char m_currentScreen[];
|
||||
static EffectDeath* m_deathEffect;
|
||||
static int32_t m_disconnectPending;
|
||||
|
||||
@ -222,7 +222,14 @@ int32_t Script_ShowContestNotice(lua_State* L) {
|
||||
}
|
||||
|
||||
int32_t Script_ContestAccepted(lua_State* L) {
|
||||
WHOA_UNIMPLEMENTED(0);
|
||||
if (CGlueMgr::m_contestAccepted) {
|
||||
lua_pushnumber(L, 1.0);
|
||||
}
|
||||
else {
|
||||
lua_pushnil(L);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int32_t Script_AcceptContest(lua_State* L) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user