Skip to content

Commit 7e6b048

Browse files
authored
Merge branch 'master' into bugfix/fire_task
2 parents a0dc298 + c68f458 commit 7e6b048

File tree

3 files changed

+5
-15
lines changed

3 files changed

+5
-15
lines changed

Client/core/CClientVariables.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ void CClientVariables::LoadDefaults()
358358
DEFAULT("discord_rpc_share_data_firsttime", false); // Display the user data sharing consent dialog box - for the first time
359359
DEFAULT("browser_enable_gpu", true); // Enable GPU in CEF? (allows stuff like WebGL to function)
360360
DEFAULT("process_cpu_affinity", true); // Set CPU 0 affinity to improve game performance and fix the known issue in single-threaded games
361+
DEFAULT("ask_before_disconnect", true); // Ask before disconnecting from a server
361362

362363
if (!Exists("locale"))
363364
{

Client/mods/deathmatch/logic/CClientStreamElement.cpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void CClientStreamElement::InternalStreamIn(bool bInstantly)
6161
}
6262
}
6363

64-
void CClientStreamElement::InternalStreamOut(bool ignoreSendingEvent)
64+
void CClientStreamElement::InternalStreamOut()
6565
{
6666
if (m_bStreamedIn)
6767
{
@@ -83,24 +83,13 @@ void CClientStreamElement::InternalStreamOut(bool ignoreSendingEvent)
8383
}
8484
}
8585

86-
if (!ignoreSendingEvent)
87-
{
88-
CLuaArguments Arguments;
89-
CallEvent("onClientElementStreamOut", Arguments, true);
90-
}
86+
CLuaArguments Arguments;
87+
CallEvent("onClientElementStreamOut", Arguments, true);
9188
}
9289
}
9390

9491
void CClientStreamElement::NotifyCreate()
9592
{
96-
// If the dimensions are different, stream out and do not continue
97-
if (GetDimension() != m_pStreamer->m_usDimension)
98-
{
99-
m_bStreamedIn = true; // InternalStreamOut need it
100-
InternalStreamOut(true);
101-
return;
102-
}
103-
10493
// Update common atrributes
10594
if (!m_bDoubleSidedInit)
10695
m_bDoubleSided = IsDoubleSided();

Client/mods/deathmatch/logic/CClientStreamElement.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class CClientStreamElement : public CClientEntity
3030
CClientStreamSector* GetStreamSector() { return m_pStreamSector; }
3131
bool IsStreamedIn() { return m_bStreamedIn; }
3232
void InternalStreamIn(bool bInstantly);
33-
void InternalStreamOut(bool ignoreSendingEvent = false);
33+
void InternalStreamOut();
3434
virtual void StreamIn(bool bInstantly) = 0;
3535
virtual void StreamOut() = 0;
3636
virtual void NotifyCreate();

0 commit comments

Comments
 (0)