Deathmatch classic support

This commit is contained in:
Wizzard
2023-09-20 08:46:08 -04:00
parent c1ff555e17
commit c5e985bc42
4 changed files with 16 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ GameType get_current_game(void) {
current_game = GAME_CS16;
} else if (strcmp(gameTypeToken, "dod") == 0) {
current_game = GAME_DAY_OF_DEFEAT;
} else if (strcmp(gameTypeToken, "dmc") == 0) {
current_game = GAME_DMC;
} else if (strcmp(gameTypeToken, "tfc") == 0) {
current_game = GAME_TFC;
}
@@ -66,3 +68,7 @@ int IsDayOfDefeat(void) {
int IsTFC(void) {
return get_current_game() == GAME_TFC;
}
int IsDeathmatchClassic(void) {
return get_current_game() == GAME_DMC;
}