Improved session switcher for SC TV (#413)

This commit is contained in:
Aure7138 2022-08-14 18:19:15 +08:00 committed by GitHub
parent d6fce67cbc
commit 84ba76b7a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,8 @@ namespace big::session
{ {
void join_type(SessionType session) void join_type(SessionType session)
{ {
*script_global(2726795).as<int*>() = (session.id == eSessionType::SC_TV ? 1 : 0); // If SC TV Then Enable Spectator Mode
if (session.id == eSessionType::LEAVE_ONLINE) if (session.id == eSessionType::LEAVE_ONLINE)
*script_global(1574589).at(2).as<int*>() = -1; *script_global(1574589).at(2).as<int*>() = -1;
else else