From 4a044f5f32e3c7bf4e7dd8f140e34ef3a671ceed Mon Sep 17 00:00:00 2001 From: Daggolin Date: Sat, 16 Sep 2023 20:17:14 +0200 Subject: [PATCH] [MP] Fix roff not working on 64 bit builds. Change type of mVersion in TROFFHeader and TROFF2Header from long to int. --- codemp/qcommon/RoffSystem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codemp/qcommon/RoffSystem.h b/codemp/qcommon/RoffSystem.h index 23c1dd26a1..7f2aa0ac6f 100644 --- a/codemp/qcommon/RoffSystem.h +++ b/codemp/qcommon/RoffSystem.h @@ -64,7 +64,7 @@ class CROFFSystem //------------------------------- { char mHeader[4]; // should match roff_string defined above - long mVersion; // version num, supported version defined above + int mVersion; // version num, supported version defined above float mCount; // I think this is a float because of a limitation of the roff exporter } TROFFHeader; @@ -81,7 +81,7 @@ class CROFFSystem //------------------------------- { char mHeader[4]; // should match roff_string defined above - long mVersion; // version num, supported version defined above + int mVersion; // version num, supported version defined above int mCount; // I think this is a float because of a limitation of the roff exporter int mFrameRate; // Frame rate the roff should be played at int mNumNotes; // number of notes (null terminated strings) after the roff data