mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-13 12:19:13 +00:00
add source-sdk-2013
This commit is contained in:
+8
-10
@@ -528,15 +528,15 @@ void CLCD::ShowItems_R( CLCDPage *page, unsigned int dwCurTime, CUtlVector< CLCD
|
||||
{
|
||||
CLCDItem *newItem = NULL;
|
||||
|
||||
CLCDItem *itemDefn = ag->m_Definition[ r ];
|
||||
switch ( itemDefn->m_Type )
|
||||
CLCDItem *item = ag->m_Definition[ r ];
|
||||
switch ( item->m_Type )
|
||||
{
|
||||
default:
|
||||
break;
|
||||
|
||||
case LCDITEM_TEXT:
|
||||
{
|
||||
CLCDItemText *text = static_cast< CLCDItemText * >(itemDefn);
|
||||
CLCDItemText *text = static_cast< CLCDItemText * >( item );
|
||||
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( itemDefn->m_Type ) );
|
||||
CLCDItemText *copy = static_cast< CLCDItemText * >( page->Alloc( item->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 * >(itemDefn);
|
||||
CLCDItemIcon *copy = static_cast< CLCDItemIcon * >( page->Alloc( itemDefn->m_Type ) );
|
||||
CLCDItemIcon *icon = static_cast< CLCDItemIcon * >( item );
|
||||
CLCDItemIcon *copy = static_cast< CLCDItemIcon * >( page->Alloc( item->m_Type ) );
|
||||
*copy = *icon;
|
||||
copy->m_bActive = true;
|
||||
copy->Create( m_lcd );
|
||||
@@ -1178,10 +1178,8 @@ void CLCD::DumpPlayer()
|
||||
|
||||
Msg( "(localplayer)\n\n" );
|
||||
|
||||
{
|
||||
CDescribeData helper( player );
|
||||
helper.DumpDescription( player->GetPredDescMap() );
|
||||
}
|
||||
CDescribeData helper( player );
|
||||
helper.DumpDescription( player->GetPredDescMap() );
|
||||
|
||||
Msg( "(localteam)\n\n" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user