Skip to content

Commit 41c4989

Browse files
committed
fix some startup warnings/errors
1 parent 9e36081 commit 41c4989

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/game/client/tf/workshop/published_files.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extern ConVar publish_file_last_dir;
4040
// milliseconds
4141
ConVar tf_steam_workshop_query_timeout( "tf_steam_workshop_query_timeout", "1", FCVAR_CLIENTDLL, "Time in seconds to allow communication with the Steam Workshop server." );
4242
ConVar tf_steam_workshop_page_skip( "tf_steam_workshop_page_skip", "10", FCVAR_ARCHIVE, "Number of pages to skip in the Steam Workshop dialog.", true, 1, true, 100 );
43+
ConVar itemtest_enabled( "itemtest_enabled", "0", FCVAR_CLIENTDLL, "If itemtesting should be automatically enabled in the itemtest map." );
4344

4445
//-----------------------------------------------------------------------------
4546
// Purpose: Utility function
@@ -1602,7 +1603,7 @@ class CItemTestHUDPanel : public CHudElement, public vgui::EditablePanel
16021603
if ( TFGameRules() && TFGameRules()->IsInItemTestingMode() )
16031604
return true;
16041605

1605-
return FStrEq( engine->GetLevelName(), "maps/itemtest.bsp" );
1606+
return itemtest_enabled.GetBool() && FStrEq( engine->GetLevelName(), "maps/itemtest.bsp" );
16061607
}
16071608

16081609
virtual void PerformLayout()

src/game/server/tf/tf_stv_support.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ CTFDemoTVSupport::CTFDemoTVSupport() : CAutoGameSystemPerFrame( "CTFDemoTVSuppor
5858
//-----------------------------------------------------------------------------
5959
bool CTFDemoTVSupport::Init()
6060
{
61-
ListenForGameEvent( "tv_demo_stop" );
61+
//ListenForGameEvent( "tv_demo_stop" );
6262
ListenForGameEvent( "teamplay_game_over" );
6363
ListenForGameEvent( "tf_game_over" );
6464
return true;

src/game/shared/gc_clientsystem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ bool CGCClientSystem::BSendMessage( const GCSDK::CProtoBufMsgBase& msg )
118118
return m_GCClient.BSendMessage( msg );
119119
}
120120

121+
#ifdef GAME_DLL
121122
ConVar sv_private_token( "sv_private_token", "0", FCVAR_HIDDEN );
123+
#endif
122124

123125
//-----------------------------------------------------------------------------
124126
// Purpose:

0 commit comments

Comments
 (0)