Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 16, 2006, 2:53:00 AM (18 years ago)
Author:
patrick
Message:

bsp: added a sound source to the generic npc as a start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/npcs/generic_npc.cc

    r8515 r8516  
    2323#include "interactive_model.h"
    2424#include "md2/md2Model.h"
     25
     26#include "sound_buffer.h"
     27
     28#include "loading/resource_manager.h"
    2529
    2630#include "generic_npc.h"
     
    6165  this->setClassID(CL_GENERIC_NPC, "GenericNPC");
    6266  this->toList(OM_GROUP_00);
     67
     68  if (this->soundBuffer != NULL)
     69    ResourceManager::getInstance()->unload(this->soundBuffer);
     70  this->soundBuffer = (OrxSound::SoundBuffer*)ResourceManager::getInstance()->load("sound/rain.wav", WAV);
    6371}
    6472
Note: See TracChangeset for help on using the changeset viewer.