1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-28 16:10:24 -05:00

Fix last stand pistol not changing when players join

This commit is contained in:
Jbleezy
2023-05-17 22:40:16 -07:00
parent 603bf52ec6
commit f7b4486a36

View File

@ -2634,6 +2634,7 @@ check_quickrevive_for_hotjoin(disconnecting_player)
return; return;
} }
solo_mode = 0;
subtract_num = 0; subtract_num = 0;
if ( isdefined( disconnecting_player ) ) if ( isdefined( disconnecting_player ) )
@ -2643,10 +2644,13 @@ check_quickrevive_for_hotjoin(disconnecting_player)
if ( players.size - subtract_num == 1 ) if ( players.size - subtract_num == 1 )
{ {
solo_mode = 1;
flag_set( "solo_game" ); flag_set( "solo_game" );
} }
else else
{ {
flag_clear( "solo_game" ); flag_clear( "solo_game" );
} }
set_default_laststand_pistol( solo_mode );
} }