Skip to content

Commit f735e7a

Browse files
authored
Fix HTML MOTD (#174)
1 parent a15db00 commit f735e7a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

game/client/game_controls/vguitextwindow.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extern INetworkStringTable *g_pStringTableInfoPanel;
3232

3333
#define TEMP_HTML_FILE "textwindow_temp.html"
3434

35-
ConVar cl_disablehtmlmotd( "cl_disablehtmlmotd", "0", FCVAR_ARCHIVE, "Disable HTML motds." );
35+
ConVar cl_disablehtmlmotd( "cl_disablehtmlmotd", "1", FCVAR_ARCHIVE, "Disable HTML motds." );
3636

3737
//=============================================================================
3838
// HPE_BEGIN:
@@ -129,7 +129,8 @@ void CTextWindow::ApplySchemeSettings( IScheme *pScheme )
129129
CTextWindow::~CTextWindow()
130130
{
131131
// remove temp file again
132-
g_pFullFileSystem->RemoveFile( TEMP_HTML_FILE, "DEFAULT_WRITE_PATH" );
132+
if (g_pFullFileSystem->FileExists(TEMP_HTML_FILE))
133+
g_pFullFileSystem->RemoveFile( TEMP_HTML_FILE, "DEFAULT_WRITE_PATH" );
133134
}
134135

135136
void CTextWindow::Reset( void )

0 commit comments

Comments
 (0)