mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-01-30 19:42:51 +03:00
fix(glue): kill gotos in CGlueMgr::NetDisconnectHandler
This commit is contained in:
parent
f4bf67fe6b
commit
6bed0f5f83
@ -266,12 +266,9 @@ int32_t CGlueMgr::NetDisconnectHandler(const void* eventData, void*) {
|
||||
|
||||
if (v11) {
|
||||
ConsolePrintf("CGlueMgr::NetDisconnectHandler: Displaying script");
|
||||
LABEL_14:
|
||||
FrameScript_SignalEvent(2u, "%d", CGlueMgr::m_clientKickReason);
|
||||
goto LABEL_15;
|
||||
}
|
||||
} else {
|
||||
ConsolePrintf("CGlueMgr::NetDisconnectHandler: NOT displaying script");
|
||||
|
||||
WOWCS_OPS op;
|
||||
const char* msg;
|
||||
int32_t result;
|
||||
@ -280,11 +277,12 @@ LABEL_14:
|
||||
|
||||
if (!complete || result) {
|
||||
ClientServices::SelectRealm("");
|
||||
goto LABEL_14;
|
||||
}
|
||||
FrameScript_SignalEvent(2u, "%d", CGlueMgr::m_clientKickReason);
|
||||
} else {
|
||||
FrameScript_SignalEvent(3u, "%s%s", "OKAY", msg);
|
||||
}
|
||||
}
|
||||
|
||||
LABEL_15:
|
||||
ClientServices::LoginConnection()->Logoff();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user