Fix gcc 9/10 & mapbase build errors

This commit is contained in:
Alexander 'z33ky' Hirsch
2020-06-14 10:39:08 +02:00
parent 4d45c32be9
commit 9d0f5197bd
33 changed files with 267 additions and 204 deletions

View File

@@ -52,7 +52,7 @@ void CSkyboxSwapper::Precache( void )
{
if ( Q_strlen( m_iszSkyboxName.ToCStr() ) == 0 )
{
Warning( "skybox_swapper (%s) has no skybox specified!\n", GetEntityName() );
Warning( "skybox_swapper (%s) has no skybox specified!\n", STRING(GetEntityName()) );
return;
}
@@ -73,8 +73,8 @@ void CSkyboxSwapper::InputTrigger( inputdata_t &inputdata )
static ConVarRef skyname( "sv_skyname", false );
if ( !skyname.IsValid() )
{
Warning( "skybox_swapper (%s) trigger input failed - cannot find 'sv_skyname' convar!\n", GetEntityName() );
Warning( "skybox_swapper (%s) trigger input failed - cannot find 'sv_skyname' convar!\n", STRING(GetEntityName()) );
return;
}
skyname.SetValue( m_iszSkyboxName.ToCStr() );
}
}