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

(cherry picked from commit c097bc9d7d)
This commit is contained in:
Rubidium
2021-04-13 21:58:56 +02:00
committed by Jonathan G Rennison
parent 4b37044ef1
commit 525f6adcd0
7 changed files with 79 additions and 64 deletions

View File

@@ -7723,7 +7723,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;
}