Update l4dtoolz_mm.cpp

This commit is contained in:
TyUser 2015-11-02 19:16:30 +05:00
parent a66810e57f
commit feba1152dc

View File

@ -44,10 +44,10 @@ void l4dtoolz::OnChangeMaxplayers ( IConVar *var, const char *pOldValue, float f
#ifdef L4D1
max_players_new[4] = friends_lobby_new[3] = server_bplayers_new[3] = new_value;
#else
max_players_new[4] = server_bplayers_new[3] = new_value;
max_players_new[4] = server_bplayers_new[3] = (unsigned char)new_value;
#endif
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);
} else {
Msg("sv_maxplayers MS init error\n");