Browse Source

size of arrays are now a power of two

half-secret
iZarif 5 years ago
parent
commit
a0ccf2d0a1
  1. 2
      cl_dll/ammo.cpp
  2. 2
      cl_dll/hud_spectator.cpp
  3. 8
      dlls/nihilanth.cpp

2
cl_dll/ammo.cpp

@ -77,7 +77,7 @@ void WeaponsResource::LoadWeaponSprites( WEAPON *pWeapon ) @@ -77,7 +77,7 @@ void WeaponsResource::LoadWeaponSprites( WEAPON *pWeapon )
else
iRes = 640;
char sz[140];
char sz[256];
if( !pWeapon )
return;

2
cl_dll/hud_spectator.cpp

@ -820,7 +820,7 @@ bool CHudSpectator::IsActivePlayer( cl_entity_t *ent ) @@ -820,7 +820,7 @@ bool CHudSpectator::IsActivePlayer( cl_entity_t *ent )
bool CHudSpectator::ParseOverviewFile()
{
char filename[270] = { 0 };
char filename[512] = { 0 };
char levelname[255] = { 0 };
char token[1024] = { 0 };
float height;

8
dlls/nihilanth.cpp

@ -724,7 +724,7 @@ void CNihilanth::NextActivity() @@ -724,7 +724,7 @@ void CNihilanth::NextActivity()
if( ( pev->health < gSkillData.nihilanthHealth / 2 || m_iActiveSpheres < N_SPHERES / 2 ) && m_hRecharger == 0 && m_iLevel <= 9 )
{
char szName[66];
char szName[128];
CBaseEntity *pEnt = NULL;
CBaseEntity *pRecharger = NULL;
@ -772,7 +772,7 @@ void CNihilanth::NextActivity() @@ -772,7 +772,7 @@ void CNihilanth::NextActivity()
if( iseq != pev->sequence )
{
char szText[76];
char szText[128];
sprintf( szText, "%s%d", m_szDrawUse, m_iLevel );
FireTargets( szText, this, this, USE_ON, 1.0 );
@ -820,7 +820,7 @@ void CNihilanth::NextActivity() @@ -820,7 +820,7 @@ void CNihilanth::NextActivity()
}
else
{
char szText[66];
char szText[128];
sprintf( szText, "%s%d", m_szTeleportTouch, m_iTeleport );
CBaseEntity *pTouch = UTIL_FindEntityByTargetname( NULL, szText );
@ -1100,7 +1100,7 @@ void CNihilanth::HandleAnimEvent( MonsterEvent_t *pEvent ) @@ -1100,7 +1100,7 @@ void CNihilanth::HandleAnimEvent( MonsterEvent_t *pEvent )
// prayer
if( m_hEnemy != 0 )
{
char szText[76];
char szText[128];
sprintf( szText, "%s%d", m_szTeleportTouch, m_iTeleport );
CBaseEntity *pTouch = UTIL_FindEntityByTargetname( NULL, szText );

Loading…
Cancel
Save