mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Added WIP v142 toolset support based on Source SDK 2013: Community Edition repo
This commit is contained in:
@@ -528,15 +528,15 @@ void CLCD::ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCD
|
||||
{
|
||||
CLCDItem *newItem = NULL;
|
||||
|
||||
CLCDItem *item = ag->m_Definition[ r ];
|
||||
switch ( item->m_Type )
|
||||
CLCDItem *itemLocl = ag->m_Definition[ r ];
|
||||
switch ( itemLocl->m_Type )
|
||||
{
|
||||
default:
|
||||
break;
|
||||
|
||||
case LCDITEM_TEXT:
|
||||
{
|
||||
CLCDItemText *text = static_cast< CLCDItemText * >( item );
|
||||
CLCDItemText *text = static_cast< CLCDItemText * >( itemLocl );
|
||||
CUtlString s;
|
||||
s = text->m_OriginalText;
|
||||
Replace( s, prefix, s1 );
|
||||
@@ -551,7 +551,7 @@ void CLCD::ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCD
|
||||
|
||||
// text->m_OriginalText = s;
|
||||
|
||||
CLCDItemText *copy = static_cast< CLCDItemText * >( page->Alloc( item->m_Type ) );
|
||||
CLCDItemText *copy = static_cast< CLCDItemText * >( page->Alloc( itemLocl->m_Type ) );
|
||||
*copy = *text;
|
||||
copy->m_bActive = true;
|
||||
copy->m_OriginalText = s;
|
||||
@@ -564,8 +564,8 @@ void CLCD::ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCD
|
||||
break;
|
||||
case LCDITEM_ICON:
|
||||
{
|
||||
CLCDItemIcon *icon = static_cast< CLCDItemIcon * >( item );
|
||||
CLCDItemIcon *copy = static_cast< CLCDItemIcon * >( page->Alloc( item->m_Type ) );
|
||||
CLCDItemIcon *icon = static_cast< CLCDItemIcon * >( itemLocl );
|
||||
CLCDItemIcon *copy = static_cast< CLCDItemIcon * >( page->Alloc( itemLocl->m_Type ) );
|
||||
*copy = *icon;
|
||||
copy->m_bActive = true;
|
||||
copy->Create( m_lcd );
|
||||
@@ -1186,16 +1186,16 @@ void CLCD::DumpPlayer()
|
||||
C_Team *team = player->GetTeam();
|
||||
if ( team )
|
||||
{
|
||||
CDescribeData helper( team );
|
||||
helper.DumpDescription( team->GetPredDescMap() );
|
||||
CDescribeData helperLocl( team );
|
||||
helperLocl.DumpDescription( team->GetPredDescMap() );
|
||||
}
|
||||
|
||||
Msg( "(playerresource)\n\n" );
|
||||
|
||||
if ( g_PR )
|
||||
{
|
||||
CDescribeData helper( g_PR );
|
||||
helper.DumpDescription( g_PR->GetPredDescMap() );
|
||||
CDescribeData helperLocl( g_PR );
|
||||
helperLocl.DumpDescription( g_PR->GetPredDescMap() );
|
||||
}
|
||||
|
||||
Msg( "(localplayerweapon)\n\n" );
|
||||
@@ -1203,8 +1203,8 @@ void CLCD::DumpPlayer()
|
||||
C_BaseCombatWeapon *active = player->GetActiveWeapon();
|
||||
if ( active )
|
||||
{
|
||||
CDescribeData helper( active );
|
||||
helper.DumpDescription( active->GetPredDescMap() );
|
||||
CDescribeData helperLocl( active );
|
||||
helperLocl.DumpDescription( active->GetPredDescMap() );
|
||||
}
|
||||
|
||||
Msg( "Other replacements:\n\n" );
|
||||
|
||||
Reference in New Issue
Block a user