breaking engine headers by replacing int with string_t where it's supposed to be
This commit is contained in:
parent
ad2191333d
commit
eef5cc17b3
3 changed files with 10 additions and 7 deletions
|
@ -14,6 +14,9 @@
|
||||||
****/
|
****/
|
||||||
#ifndef CONST_H
|
#ifndef CONST_H
|
||||||
#define CONST_H
|
#define CONST_H
|
||||||
|
|
||||||
|
#include <stddef.h> // ptrdiff_t
|
||||||
|
|
||||||
//
|
//
|
||||||
// Constants shared by the engine and dlls
|
// Constants shared by the engine and dlls
|
||||||
// This header file included by engine files and DLL files.
|
// This header file included by engine files and DLL files.
|
||||||
|
@ -721,7 +724,7 @@ enum
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef int func_t;
|
typedef int func_t;
|
||||||
typedef int string_t;
|
typedef ptrdiff_t string_t;
|
||||||
|
|
||||||
typedef unsigned short word;
|
typedef unsigned short word;
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ typedef struct enginefuncs_s
|
||||||
void (*pfnAngleVectors)( const float *rgflVector, float *forward, float *right, float *up );
|
void (*pfnAngleVectors)( const float *rgflVector, float *forward, float *right, float *up );
|
||||||
edict_t* (*pfnCreateEntity)( void );
|
edict_t* (*pfnCreateEntity)( void );
|
||||||
void (*pfnRemoveEntity)( edict_t* e );
|
void (*pfnRemoveEntity)( edict_t* e );
|
||||||
edict_t* (*pfnCreateNamedEntity)( int className );
|
edict_t* (*pfnCreateNamedEntity)( string_t className );
|
||||||
void (*pfnMakeStatic)( edict_t *ent );
|
void (*pfnMakeStatic)( edict_t *ent );
|
||||||
int (*pfnEntIsOnFloor)( edict_t *e );
|
int (*pfnEntIsOnFloor)( edict_t *e );
|
||||||
int (*pfnDropToFloor)( edict_t* e );
|
int (*pfnDropToFloor)( edict_t* e );
|
||||||
|
@ -168,8 +168,8 @@ typedef struct enginefuncs_s
|
||||||
void* (*pfnPvAllocEntPrivateData)( edict_t *pEdict, long cb );
|
void* (*pfnPvAllocEntPrivateData)( edict_t *pEdict, long cb );
|
||||||
void* (*pfnPvEntPrivateData)( edict_t *pEdict );
|
void* (*pfnPvEntPrivateData)( edict_t *pEdict );
|
||||||
void (*pfnFreeEntPrivateData)( edict_t *pEdict );
|
void (*pfnFreeEntPrivateData)( edict_t *pEdict );
|
||||||
const char *(*pfnSzFromIndex)( int iString );
|
const char *(*pfnSzFromIndex)( string_t iString );
|
||||||
int (*pfnAllocString)( const char *szValue );
|
string_t (*pfnAllocString)( const char *szValue );
|
||||||
struct entvars_s *(*pfnGetVarsOfEnt)( edict_t *pEdict );
|
struct entvars_s *(*pfnGetVarsOfEnt)( edict_t *pEdict );
|
||||||
edict_t* (*pfnPEntityOfEntOffset)( int iEntOffset );
|
edict_t* (*pfnPEntityOfEntOffset)( int iEntOffset );
|
||||||
int (*pfnEntOffsetOfPEntity)( const edict_t *pEdict );
|
int (*pfnEntOffsetOfPEntity)( const edict_t *pEdict );
|
||||||
|
|
|
@ -85,8 +85,8 @@ typedef struct entvars_s
|
||||||
int modelindex;
|
int modelindex;
|
||||||
|
|
||||||
string_t model;
|
string_t model;
|
||||||
int viewmodel; // player's viewmodel
|
string_t viewmodel; // player's viewmodel
|
||||||
int weaponmodel; // what other players see
|
string_t weaponmodel; // what other players see
|
||||||
|
|
||||||
vec3_t absmin; // BB max translated to world coord
|
vec3_t absmin; // BB max translated to world coord
|
||||||
vec3_t absmax; // BB max translated to world coord
|
vec3_t absmax; // BB max translated to world coord
|
||||||
|
@ -144,7 +144,7 @@ typedef struct entvars_s
|
||||||
int flags;
|
int flags;
|
||||||
|
|
||||||
int colormap; // lowbyte topcolor, highbyte bottomcolor
|
int colormap; // lowbyte topcolor, highbyte bottomcolor
|
||||||
int team;
|
string_t team;
|
||||||
|
|
||||||
float max_health;
|
float max_health;
|
||||||
float teleport_time;
|
float teleport_time;
|
||||||
|
|
Loading…
Add table
Reference in a new issue