Skip to content

Commit ca22260

Browse files
committed
Enforce player slot cap in server browser
1 parent 840b73c commit ca22260

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Client/core/CQueryReceiver.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,15 @@ SQueryInfo CQueryReceiver::GetServerResponse()
213213
return info;
214214
}
215215
}
216+
216217
InvalidateSocket();
218+
219+
if (info.players > info.playerSlot)
220+
{
221+
info.players = info.playerSlot;
222+
info.isStatusVerified = false;
223+
}
224+
217225
info.containingInfo = true;
218226
}
219227

0 commit comments

Comments
 (0)