mirror of
https://github.com/XLabsProject/s1x-client.git
synced 2023-08-02 15:02:12 +02:00
space + sv_motd empty check gone
This commit is contained in:
parent
b7b5520ab2
commit
2b7988d4ba
@ -125,7 +125,7 @@ namespace exception
|
||||
recovery_data.last_recovery = std::chrono::high_resolution_clock::now();
|
||||
++recovery_data.recovery_counts;
|
||||
|
||||
party::clear_sv_motd(); // clear sv_motd on error if it exists
|
||||
party::clear_sv_motd(); // clear sv_motd on error
|
||||
|
||||
game::Com_Error(game::ERR_DROP, "Fatal error (0x%08X) at 0x%p.\nA minidump has been written.\n\n"
|
||||
"S1x has tried to recover your game, but it might not run stable anymore.\n\n"
|
||||
|
@ -138,6 +138,7 @@ namespace party
|
||||
}
|
||||
|
||||
utils::hook::detour cldisconnect_hook;
|
||||
|
||||
void cldisconnect_stub(int a1)
|
||||
{
|
||||
clear_sv_motd();
|
||||
@ -154,10 +155,7 @@ namespace party
|
||||
|
||||
void clear_sv_motd()
|
||||
{
|
||||
if (!party::sv_motd.empty())
|
||||
{
|
||||
party::sv_motd.clear();
|
||||
}
|
||||
party::sv_motd.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -301,7 +299,7 @@ namespace party
|
||||
// hook disconnect command function
|
||||
utils::hook::jump(0x14020A010, disconnect_stub);
|
||||
|
||||
// detour CL_Disconnect to clear motd if it exists
|
||||
// detour CL_Disconnect to clear motd
|
||||
cldisconnect_hook.create(0x140209EC0, cldisconnect_stub);
|
||||
|
||||
if (game::environment::is_mp())
|
||||
|
Loading…
Reference in New Issue
Block a user