diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2018-03-04 23:34:02 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-06-15 23:09:17 +0200 |
commit | 276192f714d6816088791435c1b70dfa7122cdbd (patch) | |
tree | 98ca1f899d2769c7538333617ee01db1bd2c68b7 /src/base_media_base.h | |
parent | 836d25e738b78d1c8820ecab1f7bd90b0833ca17 (diff) | |
download | openttd-276192f714d6816088791435c1b70dfa7122cdbd.tar.xz |
Change #6684: Cutting point overrides for music base sets
This improves bad looping of title screen song from Windows TTD, and fixes
a long silence at the end of "Can't get there from here" from Windows TTD.
Diffstat (limited to 'src/base_media_base.h')
-rw-r--r-- | src/base_media_base.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base_media_base.h b/src/base_media_base.h index 407dcda86..2974db5cb 100644 --- a/src/base_media_base.h +++ b/src/base_media_base.h @@ -301,6 +301,8 @@ struct MusicSongInfo { const char *filename; ///< file on disk containing song (when used in MusicSet class, this pointer is owned by MD5File object for the file) MusicTrackType filetype; ///< decoder required for song file int cat_index; ///< entry index in CAT file, for filetype==MTT_MPSMIDI + int override_start; ///< MIDI ticks to skip over in beginning + int override_end; ///< MIDI tick to end the song at (0 if no override) }; /** All data of a music set. */ |