mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-29 07:22:23 +00:00
avoid redefining typedefs which is allowed in c++ but not c99
This commit is contained in:
parent
09ee3c1696
commit
fb2f55824f
4 changed files with 6 additions and 7 deletions
|
@ -709,7 +709,6 @@ void BG_VehicleTurnRateForSpeed( Vehicle_t *pVeh, float speed, float *mPitchOver
|
||||||
|
|
||||||
// Following couple things don't belong in the DLL namespace!
|
// Following couple things don't belong in the DLL namespace!
|
||||||
#ifdef QAGAME
|
#ifdef QAGAME
|
||||||
typedef struct gentity_s gentity_t;
|
|
||||||
gentity_t *G_PlayEffectID(const int fxID, vec3_t org, vec3_t ang);
|
gentity_t *G_PlayEffectID(const int fxID, vec3_t org, vec3_t ang);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -420,7 +420,7 @@ extern int bgForcePowerCost[NUM_FORCE_POWERS][NUM_FORCE_POWER_LEVELS];
|
||||||
|
|
||||||
#define MAXTOUCH 32
|
#define MAXTOUCH 32
|
||||||
|
|
||||||
typedef struct bgEntity_s
|
struct bgEntity_s
|
||||||
{
|
{
|
||||||
entityState_t s;
|
entityState_t s;
|
||||||
playerState_t *playerState;
|
playerState_t *playerState;
|
||||||
|
@ -430,7 +430,7 @@ typedef struct bgEntity_s
|
||||||
vec3_t modelScale; //needed for g2 collision
|
vec3_t modelScale; //needed for g2 collision
|
||||||
|
|
||||||
//Data type(s) must directly correspond to the head of the gentity and centity structures
|
//Data type(s) must directly correspond to the head of the gentity and centity structures
|
||||||
} bgEntity_t;
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
// state (in / out)
|
// state (in / out)
|
||||||
|
|
|
@ -474,7 +474,7 @@ typedef struct
|
||||||
} vehTurretStatus_t;
|
} vehTurretStatus_t;
|
||||||
// This is the implementation of the vehicle interface and any of the other variables needed. This
|
// This is the implementation of the vehicle interface and any of the other variables needed. This
|
||||||
// is what actually represents a vehicle. -AReis.
|
// is what actually represents a vehicle. -AReis.
|
||||||
typedef struct Vehicle_s
|
struct Vehicle_s
|
||||||
{
|
{
|
||||||
// The entity who pilots/drives this vehicle.
|
// The entity who pilots/drives this vehicle.
|
||||||
// NOTE: This is redundant (since m_pParentEntity->owner _should_ be the pilot). This makes things clearer though.
|
// NOTE: This is redundant (since m_pParentEntity->owner _should_ be the pilot). This makes things clearer though.
|
||||||
|
@ -620,7 +620,7 @@ typedef struct Vehicle_s
|
||||||
//the guy who was previously the pilot
|
//the guy who was previously the pilot
|
||||||
bgEntity_t * m_pOldPilot;
|
bgEntity_t * m_pOldPilot;
|
||||||
|
|
||||||
} Vehicle_t;
|
};
|
||||||
|
|
||||||
#include "../namespace_begin.h"
|
#include "../namespace_begin.h"
|
||||||
extern int BG_VehicleGetIndex( const char *vehicleName );
|
extern int BG_VehicleGetIndex( const char *vehicleName );
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
|
|
||||||
#define G_PUBLIC_H
|
#define G_PUBLIC_H
|
||||||
|
|
||||||
|
#include "../game/bg_vehicles.h"
|
||||||
|
|
||||||
#define Q3_INFINITE 16777216
|
#define Q3_INFINITE 16777216
|
||||||
|
|
||||||
#define GAME_API_VERSION 8
|
#define GAME_API_VERSION 8
|
||||||
|
@ -672,8 +674,6 @@ typedef struct
|
||||||
|
|
||||||
#define MAX_FAILED_NODES 8
|
#define MAX_FAILED_NODES 8
|
||||||
|
|
||||||
typedef struct Vehicle_s Vehicle_t;
|
|
||||||
|
|
||||||
// the server looks at a sharedEntity, which is the start of the game's gentity_t structure
|
// the server looks at a sharedEntity, which is the start of the game's gentity_t structure
|
||||||
//mod authors should not touch this struct
|
//mod authors should not touch this struct
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Reference in a new issue