(svn r11095) -Codechange: don't abuse 'file_pos' by storing the file_slot in it too, but use a nice seperate variable for it
-Note: on a side-note, this allows files bigger than 16+ MiB, needed for tar-support
This commit is contained in:
@@ -4506,9 +4506,9 @@ static void LoadGRFSound(byte *buf, int len)
|
||||
break;
|
||||
|
||||
case 'atad': // 'data'
|
||||
se->file_size = size;
|
||||
se->file_offset = FioGetPos() - (len - (buf - buf_start)) + 1;
|
||||
se->file_offset |= _file_index << 24;
|
||||
se->file_size = size;
|
||||
se->file_offset = FioGetPos() - (len - (buf - buf_start)) + 1;
|
||||
se->file_slot = _file_index;
|
||||
|
||||
/* Set default volume and priority */
|
||||
se->volume = 0x80;
|
||||
|
Reference in New Issue
Block a user