made ranges larger so can fit level 1000

This commit is contained in:
jenz 2024-09-06 12:27:49 +02:00
parent a3ff596fd6
commit 4c52965661

View File

@ -292,15 +292,15 @@ public void set_level_tag(int client, int lvl, int I_rank)
Format(hexadecimals3, sizeof(hexadecimals3), "%02X%02X%02X", red, green, blue);
char tag[128];
char charlvl[16];
char charlvl[32];
IntToString(lvl, charlvl, sizeof(charlvl));
char coloured_numbers[32];
char coloured_numbers[64];
for (int i = 0; i < strlen(charlvl); i++)
{
int i2 = i + 2;
i2 = i * i;
char number_hexa[16];
char number_hexa[32];
red = (lvl * (i2 * 37)) % 256;
green = ((lvl + (i2 * 50)) * 33) % 256;
blue = ((lvl + (i2 * 100)) * 39) % 256;
@ -328,13 +328,13 @@ public void set_level_tag(int client, int lvl, int I_rank)
Format(hexadecimals3, sizeof(hexadecimals3), "%02X%02X%02X", red, green, blue);
char tag[128];
char charlvl[16];
char charlvl[32];
IntToString(lvl, charlvl, sizeof(charlvl));
char coloured_numbers[32];
char coloured_numbers[64];
for (int i = 0; i < strlen(charlvl); i++)
{
char number_hexa[16];
char number_hexa[32];
red = (GetRandomInt(0, 255)) % 256;
green = (GetRandomInt(0, 255)) % 256;
blue = (GetRandomInt(0, 255)) % 256;