mirror of
https://github.com/accelerator74/l4dtoolz.git
synced 2025-09-19 04:06:09 +08:00
Update l4dtoolz_mm.cpp
This commit is contained in:
@ -44,10 +44,10 @@ void l4dtoolz::OnChangeMaxplayers ( IConVar *var, const char *pOldValue, float f
|
|||||||
#ifdef L4D1
|
#ifdef L4D1
|
||||||
max_players_new[4] = friends_lobby_new[3] = server_bplayers_new[3] = new_value;
|
max_players_new[4] = friends_lobby_new[3] = server_bplayers_new[3] = new_value;
|
||||||
#else
|
#else
|
||||||
max_players_new[4] = server_bplayers_new[3] = new_value;
|
max_players_new[4] = server_bplayers_new[3] = (unsigned char)new_value;
|
||||||
#endif
|
#endif
|
||||||
if(lobby_match_ptr) {
|
if(lobby_match_ptr) {
|
||||||
lobby_match_new[2] = new_value;
|
lobby_match_new[2] = (unsigned char)new_value;
|
||||||
write_signature(lobby_match_ptr, lobby_match_new);
|
write_signature(lobby_match_ptr, lobby_match_new);
|
||||||
} else {
|
} else {
|
||||||
Msg("sv_maxplayers MS init error\n");
|
Msg("sv_maxplayers MS init error\n");
|
||||||
|
Reference in New Issue
Block a user