]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.h
modified Mod_ValidateElements to fix broken elements rather than crashing later
[xonotic/darkplaces.git] / snd_main.h
index c6b80c22d9c19be3d68e942bc043811d0267e03d..0248a92cf54cd1317da2b082ff08ed08ea54a673 100644 (file)
@@ -26,8 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 typedef struct
 {
-       int             length;
-       int             offset;
+       unsigned int    length;
+       unsigned int    offset;
        qbyte   data[4];        // variable sized
 } sfxbuffer_t;
 
@@ -59,7 +59,7 @@ struct sfx_s
        unsigned int            flags;                  // cf SFXFLAG_* defines
        snd_format_t            format;
        int                                     loopstart;
-       int                                     total_length;
+       unsigned int            total_length;
        const snd_fetcher_t     *fetcher;
        void                            *fetcher_data;  // Per-sfx data for the sound fetching functions
 };