BuildShadeTablePath matching

This commit is contained in:
Dethrace Labs 2025-09-06 10:19:34 +12:00 committed by Dethrace Engineering Department
parent b873b30604
commit 3b0612b8e9
1 changed files with 6 additions and 6 deletions

View File

@ -880,12 +880,12 @@ void BuildShadeTablePath(char* pThe_path, int pR, int pG, int pB) {
s[0] = 's';
s[1] = 't';
s[2] = 'A' + ((pR & 0xf0) >> 4);
s[3] = 'A' + ((pR & 0x0f) >> 0);
s[4] = 'A' + ((pG & 0xf0) >> 4);
s[5] = 'A' + ((pG & 0x0f) >> 0);
s[6] = 'A' + ((pB & 0xf0) >> 4);
s[7] = 'A' + ((pB & 0x0f) >> 0);
s[2] = pR / 16 + 'A';
s[3] = pR % 16 + 'A';
s[4] = pG / 16 + 'A';
s[5] = pG % 16 + 'A';
s[6] = pB / 16 + 'A';
s[7] = pB % 16 + 'A';
s[8] = '\0';
strcat(s, ".TAB");
PathCat(pThe_path, gApplication_path, "SHADETAB");