mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-20 20:05:43 +00:00
up name size because why not
This commit is contained in:
parent
d839ad1b7d
commit
92fc5124a8
@ -25,11 +25,10 @@ void cl_check_user_info(int _a1, const int force) {
|
|||||||
|
|
||||||
const auto color_code = std::rand() % 10;
|
const auto color_code = std::rand() % 10;
|
||||||
|
|
||||||
char name[16];
|
char name[32];
|
||||||
|
|
||||||
const auto numbers = std::to_string(std::rand() % 10000);
|
const auto numbers = std::to_string(std::rand() % 10000);
|
||||||
_snprintf_s(name, sizeof(name), _TRUNCATE, "^%d%s", color_code,
|
_snprintf_s(name, _TRUNCATE, "^%d%s", color_code, numbers.data());
|
||||||
numbers.data());
|
|
||||||
|
|
||||||
info.set("name", name);
|
info.set("name", name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user