Skip to content

Commit

Permalink
Added: struct Color
Browse files Browse the repository at this point in the history
  • Loading branch information
Elinsrc committed Sep 2, 2024
1 parent 9017ab8 commit 0e009a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions cl_dll/hud_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ void CHudDebug::formatTime(float totalSeconds, char* output)
sprintf(output, "Map Time: %s", buffer);
}

extern struct {
int r;
int g;
int b;
extern struct Color {
int r;
int g;
int b;
} top, bottom;

int CHudDebug::Draw(float flTime)
Expand Down
12 changes: 7 additions & 5 deletions cl_dll/hud_redraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,13 @@ void CHud::HUEtoRGB(float hue, int &R, int &G, int &B)
B = static_cast<int>(b * 255);
}

struct {
int r;
int g;
int b;
} top, bottom;
struct Color {
int r;
int g;
int b;
};

struct Color top, bottom;

void CHud::DrawHudModelName(int x, int y, float topcolor, float bottomcolor, const char* model)
{
Expand Down

0 comments on commit 0e009a2

Please sign in to comment.