Codechange: let NewGRF sounds make use of RandomAccessFile instead of the FIO slot functions

This commit is contained in:
Rubidium
2021-04-13 21:58:56 +02:00
committed by rubidium42
parent b144e56b2c
commit c097bc9d7d
7 changed files with 79 additions and 64 deletions

View File

@@ -7553,7 +7553,7 @@ static void LoadGRFSound(size_t offs, SoundEntry *sound)
if (offs != SIZE_MAX) {
/* Sound is present in the NewGRF. */
sound->file_slot = _cur.file_index;
sound->file = FioGetRandomAccessFile(_cur.file_index);
sound->file_offset = offs;
sound->grf_container_ver = _cur.grf_container_ver;
}