Skip to content

Commit

Permalink
Fix Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Dec 15, 2023
1 parent a3fa063 commit 7db6ebe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.3)
cmake_minimum_required(VERSION 3.20)

# Set the SDK according to what discord-rpc uses as the lowest common denominator.
# Must be a cache variable: https://stackoverflow.com/a/34208904
Expand Down
35 changes: 1 addition & 34 deletions cl_dll/hud_watermark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "cl_util.h"
#include "parsemsg.h"
#include "update_checker.h"
#include <filesystem>
//#include <filesystem>
#include "versioninfo.h"

int CHudWatermark::Init()
Expand All @@ -22,38 +22,6 @@ int CHudWatermark::VidInit()
return 1;
}

//cvar_t *gamedirCvar = NULL;

/*const char* GetGameDir()
{
if (!gamedirCvar)
{
gamedirCvar = gEngfuncs.pfnGetCvarPointer("gamedir");
if (!gamedirCvar)
{
gEngfuncs.Con_Printf("gamedir cvar not found\n");
return NULL;
}
}
const char* gamedirValue = gamedirCvar->string;
const char* prefix = "gamedir is ";
const char* prefixPos = strstr(gamedirValue, prefix);
if (prefixPos)
{
prefixPos += strlen(prefix);
return prefixPos;
}
else
{
return gamedirValue;
}
return gamedirValue;
}*/

int CHudWatermark::Draw(float time)
{
if (refresh_draw_until || (draw_until > gHUD.m_flTime + 15.0f))
Expand All @@ -74,7 +42,6 @@ int CHudWatermark::Draw(float time)
char zamnhlmpVersion[256];
char displayString[256];

// const char* gamedir = GetGameDir();

char filepath[260];
snprintf(filepath, sizeof(filepath), "zamnhlmp_dev/aura/version.txt");
Expand Down
2 changes: 1 addition & 1 deletion cl_dll/in_camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ void CAM_ToThirdPerson(void)

#if !defined( _DEBUG )
cvar_t* sv_cheats = NULL;
sv_cheats = gEngfuncs.GetCvarPointer("sv_cheats");
sv_cheats = gEngfuncs.pfnGetCvarPointer("sv_cheats");
if ( gEngfuncs.GetMaxClients() > 1 )
{
// no thirdperson in multiplayer.
Expand Down

0 comments on commit 7db6ebe

Please sign in to comment.