Browse Source

Precache pitdrone sounds as arrays, remove char* casts

residual_point
Roman Chistokhodov 5 years ago
parent
commit
88c78f916f
  1. 20
      dlls/rp/pitdrone.cpp

20
dlls/rp/pitdrone.cpp

@ -619,26 +619,16 @@ void CPitDrone::Spawn()
//========================================================= //=========================================================
void CPitDrone::Precache() void CPitDrone::Precache()
{ {
int i;
PRECACHE_MODEL("models/pit_drone.mdl"); PRECACHE_MODEL("models/pit_drone.mdl");
PRECACHE_MODEL("models/pit_drone_gibs.mdl"); PRECACHE_MODEL("models/pit_drone_gibs.mdl");
PRECACHE_MODEL("models/pit_drone_spike.mdl");// spit projectile. PRECACHE_MODEL("models/pit_drone_spike.mdl");// spit projectile.
iPitDroneSpitSprite = PRECACHE_MODEL("sprites/tinyspit.spr");// client side spittle. iPitDroneSpitSprite = PRECACHE_MODEL("sprites/tinyspit.spr");// client side spittle.
for (i = 0; i < ARRAYSIZE(pAttackMissSounds); i++) PRECACHE_SOUND_ARRAY(pAttackMissSounds);
PRECACHE_SOUND((char *)pAttackMissSounds[i]); PRECACHE_SOUND_ARRAY(pIdleSounds);
PRECACHE_SOUND_ARRAY(pDieSounds);
for (i = 0; i < ARRAYSIZE(pIdleSounds); i++) PRECACHE_SOUND_ARRAY(pPainSounds);
PRECACHE_SOUND((char *)pIdleSounds[i]); PRECACHE_SOUND_ARRAY(pAlertSounds);
for (i = 0; i < ARRAYSIZE(pDieSounds); i++)
PRECACHE_SOUND((char *)pDieSounds[i]);
for (i = 0; i < ARRAYSIZE(pPainSounds); i++)
PRECACHE_SOUND((char *)pPainSounds[i]);
for (i = 0; i < ARRAYSIZE(pAlertSounds); i++)
PRECACHE_SOUND((char *)pAlertSounds[i]);
PRECACHE_SOUND("bullchicken/bc_bite2.wav"); PRECACHE_SOUND("bullchicken/bc_bite2.wav");
PRECACHE_SOUND("bullchicken/bc_bite3.wav"); PRECACHE_SOUND("bullchicken/bc_bite3.wav");

Loading…
Cancel
Save