FF Diff Viewer

Comparing 2006 Base SDK to Fortress Forever 2.46

cl_dll/weapons_resource.cpp

19202122232425262728293031323334
WeaponsResource gWR; void FreeHudTextureList( CUtlDict< CHudTexture *, int >& list ); static CHudTexture *FindHudTextureInDict( CUtlDict< CHudTexture *, int >& list, const char *psz ) { int idx = list.Find( psz ); if ( idx == list.InvalidIndex() ) return NULL; return list[ idx ]; } //----------------------------------------------------------------------------- // Purpose: // Output :
1920212223242526
WeaponsResource gWR; void FreeHudTextureList( CUtlDict< CHudTexture *, int >& list ); CHudTexture *FindHudTextureInDict( CUtlDict< CHudTexture *, int >& list, const char *psz ); // |-- Mirv: Now defined in hud.cpp //----------------------------------------------------------------------------- // Purpose: // Output :
165166167168169170
{ pHudHR->SetHistoryGap( pWeaponInfo->iconInactive->Height() ); } } p = FindHudTextureInDict( tempList, "weapon_s" );
157158159160161162163164165166167168
{ pHudHR->SetHistoryGap( pWeaponInfo->iconInactive->Height() ); } if (strlen(pWeaponInfo->szClassName) > 3) { Q_snprintf(p->szShortName, 63, "weapon_%s", pWeaponInfo->szClassName + 3); gHUD.AddSearchableHudIconToList(*p); } } p = FindHudTextureInDict( tempList, "weapon_s" );
192193194195196197
pHudHR->SetHistoryGap( pWeaponInfo->iconAmmo2->Height() ); } } } FreeHudTextureList( tempList );
190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
pHudHR->SetHistoryGap( pWeaponInfo->iconAmmo2->Height() ); } } // --> Mirv: p = FindHudTextureInDict( tempList, "deathnotice" ); if (p) { if (strlen(pWeaponInfo->szClassName) > 3) { Q_snprintf(p->szShortName, 63, "death_%s", pWeaponInfo->szClassName + 3); gHUD.AddSearchableHudIconToList(*p); } } // <-- // --> Jon: p = FindHudTextureInDict( tempList, "deathnotice_headshot" ); if (p) { if (strlen(pWeaponInfo->szClassName) > 3) { Q_snprintf(p->szShortName, 63, "death_BOOM_HEADSHOT_%s", pWeaponInfo->szClassName + 3); gHUD.AddSearchableHudIconToList(*p); } } // <-- // --> squeek p = FindHudTextureInDict( tempList, "deathnotice_backstab" ); if (p) { if (strlen(pWeaponInfo->szClassName) > 3) { Q_snprintf(p->szShortName, 63, "death_backstab_%s", pWeaponInfo->szClassName + 3); gHUD.AddSearchableHudIconToList(*p); } } // <-- squeek } FreeHudTextureList( tempList );