mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- fixed a bunch of compilation errors with MSVC 16.6.0
This commit is contained in:
parent
559539bed2
commit
2974af3178
5 changed files with 13 additions and 12 deletions
|
@ -39,6 +39,7 @@
|
|||
#include <zlib.h>
|
||||
#include <bzlib.h>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
|
||||
#include "files.h"
|
||||
#include "templates.h"
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue