Remove get_cur_game and references to it

This commit is contained in:
Wizzard 2023-09-20 15:50:57 -04:00
parent 2401ecf71e
commit a898563249
2 changed files with 0 additions and 21 deletions

View File

@ -38,7 +38,6 @@ void load(void) {
}
/* Get game version after injecting */
//this_game_id = get_cur_game();
if (IsCS16()) {
i_engine->pfnClientCmd("play 'sound/radio/go.wav'");

View File

@ -70,26 +70,6 @@ char* get_name(int ent_idx) {
return info.name;
}
game_id get_cur_game(void) {
typedef void (*COM_ParseDirectoryFromCmd_t)(const char*, char*, int,
const char*);
COM_ParseDirectoryFromCmd_t COM_ParseDirectoryFromCmd =
(COM_ParseDirectoryFromCmd_t)dlsym(hw, "COM_ParseDirectoryFromCmd");
char game[FILENAME_MAX];
COM_ParseDirectoryFromCmd("-game", game, sizeof(game), "valve");
/* Get the current game we are playing */
if (game[0] == 'c' && game[1] == 's') /* cstrike */
return CS;
else if (*game == 'd') /* dod */
return DOD;
else if (*game == 't') /* tfc */
return TF;
else
return HL;
}
vec3_t vec3(float x, float y, float z) {
vec3_t ret;