|
@@ -13,25 +13,25 @@
|
|
|
#include "engine_base.h"
|
|
|
#include "newgrf.h"
|
|
|
#include "newgrf_engine.h"
|
|
|
#include "newgrf_sound.h"
|
|
|
#include "vehicle_base.h"
|
|
|
#include "sound_func.h"
|
|
|
#include "fileio_func.h"
|
|
|
#include "debug.h"
|
|
|
#include "settings_type.h"
|
|
|
|
|
|
#include "safeguards.h"
|
|
|
|
|
|
static SmallVector<SoundEntry, 8> _sounds;
|
|
|
static std::vector<SoundEntry> _sounds;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Allocate sound slots.
|
|
|
* @param num Number of slots to allocate.
|
|
|
* @return First allocated slot.
|
|
|
*/
|
|
|
SoundEntry *AllocateSound(uint num)
|
|
|
{
|
|
|
SoundEntry *sound = grow(_sounds, num);
|
|
|
MemSetT(sound, 0, num);
|
|
|
return sound;
|