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
commit8cd9ab9b7eb684737321cb09a875e41b1632a609 (patch)
tree0593f8ece7aec74da5da2ff346539cd1698e6ec4 /src/newgrf.cpp
parent1970e657a353cb5a86a4d1f101595039eadf6f29 (diff)
downloadopenttd-8cd9ab9b7eb684737321cb09a875e41b1632a609.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;