Browse Source

Fix HTML MOTD (#174)

pull/178/head
Er2 1 year ago committed by GitHub
parent
commit
f735e7a036
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      game/client/game_controls/vguitextwindow.cpp

5
game/client/game_controls/vguitextwindow.cpp

@ -32,7 +32,7 @@ extern INetworkStringTable *g_pStringTableInfoPanel; @@ -32,7 +32,7 @@ extern INetworkStringTable *g_pStringTableInfoPanel;
#define TEMP_HTML_FILE "textwindow_temp.html"
ConVar cl_disablehtmlmotd( "cl_disablehtmlmotd", "0", FCVAR_ARCHIVE, "Disable HTML motds." );
ConVar cl_disablehtmlmotd( "cl_disablehtmlmotd", "1", FCVAR_ARCHIVE, "Disable HTML motds." );
//=============================================================================
// HPE_BEGIN:
@ -129,7 +129,8 @@ void CTextWindow::ApplySchemeSettings( IScheme *pScheme ) @@ -129,7 +129,8 @@ void CTextWindow::ApplySchemeSettings( IScheme *pScheme )
CTextWindow::~CTextWindow()
{
// remove temp file again
g_pFullFileSystem->RemoveFile( TEMP_HTML_FILE, "DEFAULT_WRITE_PATH" );
if (g_pFullFileSystem->FileExists(TEMP_HTML_FILE))
g_pFullFileSystem->RemoveFile( TEMP_HTML_FILE, "DEFAULT_WRITE_PATH" );
}
void CTextWindow::Reset( void )

Loading…
Cancel
Save