[Colors] Fix color sign
This commit is contained in:
parent
93e65b4767
commit
7fcd0331be
@ -388,8 +388,7 @@ namespace Components
|
||||
|
||||
// Allow canceling that shit
|
||||
if (cancel && *cancel) return;
|
||||
}
|
||||
while (level < zeroBits);
|
||||
} while (level < zeroBits);
|
||||
|
||||
token = computeToken;
|
||||
}
|
||||
|
@ -139,9 +139,9 @@ namespace Components
|
||||
return index;
|
||||
}
|
||||
|
||||
unsigned int Colors::ColorIndex(unsigned char index)
|
||||
unsigned int Colors::ColorIndex(char index)
|
||||
{
|
||||
unsigned int result = index - '0';
|
||||
char result = index - '0';
|
||||
if (result >= Colors::ColorTable.size() || result < 0) result = 7;
|
||||
return result;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ namespace Components
|
||||
static char* GetClientName(int localClientNum, int index, char *buf, size_t size);
|
||||
static void PatchColorLimit(char limit);
|
||||
|
||||
static unsigned int ColorIndex(unsigned char);
|
||||
static unsigned int ColorIndex(char index);
|
||||
static void LookupColor(DWORD* color, char index);
|
||||
static void LookupColorStub();
|
||||
static char* CleanStrStub(char* string);
|
||||
|
Loading…
Reference in New Issue
Block a user