- fixed a bunch of compilation errors with MSVC 16.6.0

This commit is contained in:
alexey.lysiuk 2020-05-21 10:29:59 +03:00
parent 559539bed2
commit 2974af3178
5 changed files with 13 additions and 12 deletions

View file

@ -39,6 +39,7 @@
#include <zlib.h>
#include <bzlib.h>
#include <algorithm>
#include <stdexcept>
#include "files.h"
#include "templates.h"

View file

@ -30,12 +30,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
BEGIN_DUKE_NS
typedef struct {
struct animsound_t {
uint16_t frame = 0;
int16_t sound = 0;
} animsound_t;
};
typedef struct
struct dukeanim_t
{
FString name;
double frameaspect1 = 0.0, frameaspect2 = 0.0;
@ -43,7 +43,7 @@ typedef struct
TArray<animsound_t> Sounds;
uint8_t framedelay = 0;
uint8_t frameflags = 0;
} dukeanim_t;
};
extern dukeanim_t* g_animPtr;
extern TArray<dukeanim_t> g_Animations;

View file

@ -36,7 +36,7 @@ BEGIN_DUKE_NS
#define SV_MINOR_VER 7
#pragma pack(push,1)
typedef struct
struct savehead_t
{
char headerstr[11];
uint8_t majorver, minorver, ptrsize;
@ -56,7 +56,7 @@ typedef struct
// 286 bytes
uint8_t getPtrSize() const { return ptrsize; }
} savehead_t;
};
#pragma pack(pop)
extern int32_t g_fakeSaveID;

View file

@ -25,12 +25,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
BEGIN_RR_NS
typedef struct {
struct animsound_t {
uint16_t frame = 0;
int16_t sound = 0;
} animsound_t;
};
typedef struct
struct dukeanim_t
{
FString name;
double frameaspect1 = 0, frameaspect2 = 0;
@ -38,7 +38,7 @@ typedef struct
TArray<animsound_t> Sounds;
uint8_t framedelay = 0;
uint8_t frameflags = 0;
} dukeanim_t;
};
extern dukeanim_t* g_animPtr;
extern TArray<dukeanim_t> g_Animations;

View file

@ -31,7 +31,7 @@ BEGIN_RR_NS
#define SV_MINOR_VER 7
#pragma pack(push,1)
typedef struct
struct savehead_t
{
char headerstr[11];
uint8_t majorver, minorver, ptrsize;
@ -51,7 +51,7 @@ typedef struct
// 286 bytes
uint8_t getPtrSize() const { return ptrsize; }
} savehead_t;
};
#pragma pack(pop)
int32_t sv_updatestate(int32_t frominit);