Fixed compilation issues

This commit is contained in:
L 2023-05-07 20:38:08 +02:00
parent 4ce1bb71e4
commit 7030c23994
24 changed files with 137 additions and 2135 deletions

View file

@ -118,8 +118,10 @@ typedef struct {
int (*MarkFragments)( int numPoints, const vec3_t *points, const vec3_t projection,
int maxPoints, vec3_t pointBuffer, int maxFragments, markFragment_t *fragmentBuffer, float fRadiusSquared );
int (*MarkFragmentsForInlineModel)( clipHandle_t bmodel, vec3_t angles, vec3_t origin,
int numPoints, vec3_t *points, vec3_t projection, int maxPoints, float *pointBuffer, int maxFragments, markFragment_t *fragmentBuffer, float radiusSquared );
int (*MarkFragmentsForInlineModel)( clipHandle_t bmodel, vec3_t vAngles, vec3_t vOrigin,
int numPoints, const vec3_t *points, const vec3_t projection,
int maxPoints, vec3_t pointBuffer,
int maxFragments, markFragment_t *fragmentBuffer, float fRadiusSquared );
void ( *GetInlineModelBounds )( int index, vec3_t mins, vec3_t maxs );
void ( *GetLightingForDecal )( vec3_t light, vec3_t facing, vec3_t origin );
@ -190,12 +192,12 @@ typedef struct {
// stack based memory allocation for per-level things that
// won't be freed
void (*Hunk_Clear )( void );
void *(*Hunk_Alloc)( int size );
void *(*Hunk_AllocateTempMemory)( int size );
void *(*Hunk_Alloc)(size_t size );
void *(*Hunk_AllocateTempMemory)(size_t size );
void (*Hunk_FreeTempMemory)( void *block );
// dynamic memory allocator for things that need to be freed
void *(*Malloc)( size_t bytes );
void *(*Malloc)(size_t bytes );
void (*Free)( void *buf );
void (*Clear)( void );
@ -209,7 +211,7 @@ typedef struct {
int (*Cmd_Argc) (void);
char *(*Cmd_Argv) (int i);
void (*Cmd_ExecuteText) (int exec_when, const char *text);
void (*Cmd_ExecuteText) (cbufExec_t exec_when, const char *text);
// visualization for debugging collision detection
void (*CM_DrawDebugSurface)( void (*drawPoly)(int color, int numPoints, float *points) );
@ -217,7 +219,7 @@ typedef struct {
// a -1 return means the file does not exist
// NULL can be passed for buf to just determine existance
int (*FS_FOpenFile)( const char *filename, fileHandle_t *file, qboolean uniqueFILE, qboolean quiet );
int (*FS_Read)( void *buffer, int len, fileHandle_t f );
size_t (*FS_Read)( void *buffer, size_t len, fileHandle_t f );
void (*FS_CloseFile)( fileHandle_t f );
int (*FS_Seek)( fileHandle_t f, long offset, fsOrigin_t origin );
int (*FS_FileIsInPAK)( const char *filename, int *pChecksum );
@ -261,7 +263,7 @@ typedef struct {
orientation_t (*TIKI_OrientationInternal)( dtiki_t *tiki, int entnum, int tagnum, float scale );
qboolean (*TIKI_IsOnGroundInternal) (dtiki_t *tiki, int entnum, int tagnum, float threshold );
void (*TIKI_SetPoseInternal)( void *skeletor, const frameInfo_t *frameInfo, int *bone_tag, vec4_t *bone_quat, float actionWeight );
void *(*TIKI_Alloc)( int size );
void *(*TIKI_Alloc)(size_t size );
float (*GetRadiusInternal)( dtiki_t *tiki, int entnum, float scale );
float (*GetCentroidRadiusInternal)( dtiki_t *tiki, int entnum, float scale, float *centroid );
void (*GetFrameInternal)( dtiki_t *tiki, int entnum, skelAnimFrame_t *newFrame );