summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-09-13 18:22:34 +0000
committertruelight <truelight@openttd.org>2007-09-13 18:22:34 +0000
commite5452205634d47d61039208c2d2fa6457b3f32bf (patch)
tree0593f8ece7aec74da5da2ff346539cd1698e6ec4 /src/newgrf.cpp
parent5ec047d6b721b2abc463eafa149c3b1a1fe297dd (diff)
downloadopenttd-e5452205634d47d61039208c2d2fa6457b3f32bf.tar.xz
(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
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index bb7dbe3ac..25066d2f3 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -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;