diff --git a/sp/src/game/shared/mapbase/vscript_singletons.cpp b/sp/src/game/shared/mapbase/vscript_singletons.cpp index 8f821e6c..0266fac9 100644 --- a/sp/src/game/shared/mapbase/vscript_singletons.cpp +++ b/sp/src/game/shared/mapbase/vscript_singletons.cpp @@ -1424,7 +1424,7 @@ void CNetMsgScriptHelper::ReceiveMessage( bf_read &msg ) m_MsgIn.StartReading( msg.m_pData, msg.m_nDataBytes ); #endif - DebugNetMsg( 2, DLL_LOC_STR " " __FUNCTION__ "()\n" ); + DebugNetMsg( 2, DLL_LOC_STR " %s()", __FUNCTION__ ); // Don't do anything if there's no VM here. This can happen if a message from the server goes to a VM-less client, or vice versa. if ( !g_pScriptVM ) @@ -1483,7 +1483,7 @@ void CNetMsgScriptHelper::Start( const char *msg ) return; } - DebugNetMsg( 1, DLL_LOC_STR " " __FUNCTION__ "() [%d]%s\n", Hash( msg ), msg ); + DebugNetMsg( 1, DLL_LOC_STR " %s() [%d]%s\n", __FUNCTION__, Hash( msg ), msg ); #ifdef CLIENT_DLL // Client can write multiple messages in a frame before the usercmd is sent, @@ -1519,7 +1519,7 @@ void CNetMsgScriptHelper::Start( const char *msg ) //----------------------------------------------------------------------------- void CNetMsgScriptHelper::Send( HSCRIPT player, bool bReliable ) { - DebugNetMsg( 1, DLL_LOC_STR " " __FUNCTION__ "() size(%d)\n", GetNumBitsWritten() ); + DebugNetMsg( 1, DLL_LOC_STR " %s() size(%d)\n", __FUNCTION__, GetNumBitsWritten() ); CBaseEntity *pPlayer = ToEnt(player); if ( pPlayer ) @@ -1544,7 +1544,7 @@ void CNetMsgScriptHelper::Send( HSCRIPT player, bool bReliable ) //----------------------------------------------------------------------------- void CNetMsgScriptHelper::Send() { - DebugNetMsg( 1, DLL_LOC_STR " " __FUNCTION__ "() size(%d)\n", m_bWriteIgnore ? 0 : GetNumBitsWritten() ); + DebugNetMsg( 1, DLL_LOC_STR " %s() size(%d)\n", __FUNCTION__, m_bWriteIgnore ? 0 : GetNumBitsWritten() ); m_bWriteReady = true; } diff --git a/sp/src/materialsystem/stdshaders/decalmodulate_dx9.cpp b/sp/src/materialsystem/stdshaders/decalmodulate_dx9.cpp index 1f0cf258..d1d0859f 100644 --- a/sp/src/materialsystem/stdshaders/decalmodulate_dx9.cpp +++ b/sp/src/materialsystem/stdshaders/decalmodulate_dx9.cpp @@ -225,7 +225,7 @@ BEGIN_VS_SHADER( SDK_DecalModulate_dx9, SetFlashLightColorFromState( state, pShaderAPI, 28 ); - Assert( state.m_pSpotlightTexture >= 0 && state.m_nSpotlightTextureFrame >= 0 ); + Assert( state.m_pSpotlightTexture && state.m_nSpotlightTextureFrame >= 0 ); BindTexture( SHADER_SAMPLER7, state.m_pSpotlightTexture, state.m_nSpotlightTextureFrame ); float atten_pos[8]; diff --git a/sp/src/public/vscript/ivscript.h b/sp/src/public/vscript/ivscript.h index 7d4ed0ea..58f981e0 100644 --- a/sp/src/public/vscript/ivscript.h +++ b/sp/src/public/vscript/ivscript.h @@ -1841,7 +1841,7 @@ public: scopemap_t *scopeMap = m_HookList.Element(i); char *szEvent = m_HookList.Key(i); - Msg( "%s [%x]\n", szEvent, (void*)scopeMap ); + Msg( "%s [%p]\n", szEvent, (void*)scopeMap ); Msg( "{\n" ); FOR_EACH_MAP_PTR( scopeMap, j ) @@ -1849,7 +1849,7 @@ public: HScriptRaw hScope = scopeMap->Key(j); contextmap_t *contextMap = scopeMap->Element(j); - Msg( "\t(0x%X) [%x]\n", hScope, (void*)contextMap ); + Msg( "\t(0x%X) [%p]\n", hScope, (void*)contextMap ); Msg( "\t{\n" ); FOR_EACH_VEC_PTR( contextMap, k )