Skip to content

Commit

Permalink
CGAME: fixes twisted gamtypes in server info HUD
Browse files Browse the repository at this point in the history
Fixes #209. The order of game type array in CG_DrawServerInfos does matter.
  • Loading branch information
kai-li-wop committed Sep 8, 2023
1 parent d7035ab commit 03a80a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/cgame/cg_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ CG_DrawServerInfos
static const char *gametype_strs[] = {
GAMETYPE_NAME_SHORT(GT_FFA), GAMETYPE_NAME_SHORT(GT_TOURNAMENT), GAMETYPE_NAME_SHORT(GT_SINGLE_PLAYER),
GAMETYPE_NAME_SHORT(GT_SPRAYFFA), GAMETYPE_NAME_SHORT(GT_LPS), GAMETYPE_NAME_SHORT(GT_CATCH),
GAMETYPE_NAME_SHORT(GT_CTF), GAMETYPE_NAME_SHORT(GT_TEAM), GAMETYPE_NAME_SHORT(GT_FREEZETAG),
GAMETYPE_NAME_SHORT(GT_TEAM), GAMETYPE_NAME_SHORT(GT_FREEZETAG), GAMETYPE_NAME_SHORT(GT_CTF),
GAMETYPE_NAME_SHORT(GT_SPRAY), GAMETYPE_NAME_SHORT(GT_BALLOON), GAMETYPE_NAME_SHORT(GT_MAX_GAME_TYPE)};
CASSERT(ARRAY_LEN(gametype_strs) == GT_MAX_GAME_TYPE + 1);

Expand Down

0 comments on commit 03a80a2

Please sign in to comment.