Skip to content

Commit 5b3d420

Browse files
committed
Allow black and orange color
1 parent 1385579 commit 5b3d420

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/cl_cmd.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,9 @@ void CL_Color_f (void) {
757757
}
758758

759759
top &= 15;
760-
top = min(top, 13);
760+
top = min(top, 15);
761761
bottom &= 15;
762-
bottom = min(bottom, 13);
762+
bottom = min(bottom, 15);
763763

764764
Cvar_SetValue (&topcolor, top);
765765
Cvar_SetValue (&bottomcolor, bottom);

src/sbar.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,9 @@ void Sbar_DrawNum (int x, int y, int num, int digits, int color) {
439439

440440
// this used to be static function
441441
int Sbar_ColorForMap (int m) {
442-
m = bound(0, m, 13);
442+
m = bound(0, m, 15);
443443

444-
return 16 * m + 8;
444+
return m == 15 ? 0 : 16 * m + 8;
445445
}
446446

447447
// HUD -> hexum

src/teamplay.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1896,9 +1896,9 @@ void TP_ColorForcing (cvar_t *topcolor, cvar_t *bottomcolor)
18961896
}
18971897

18981898
top &= 15;
1899-
top = min(13, top);
1899+
top = min(15, top);
19001900
bottom &= 15;
1901-
bottom = min(13, bottom);
1901+
bottom = min(15, bottom);
19021902

19031903
Cvar_SetValue(topcolor, top);
19041904
Cvar_SetValue(bottomcolor, bottom);

0 commit comments

Comments
 (0)