mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
* client.h: moved usercmd_t structure to protocol.h
* quakedef.h: moved chase declarations to client.h. moved the entity_state_t structure to protocol.h. tweaked the order of quake header includes. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@529 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e6cf670066
commit
fcb75d2597
3 changed files with 48 additions and 48 deletions
|
@ -24,16 +24,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
// client.h
|
// client.h
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
vec3_t viewangles;
|
|
||||||
|
|
||||||
// intended velocities
|
|
||||||
float forwardmove;
|
|
||||||
float sidemove;
|
|
||||||
float upmove;
|
|
||||||
} usercmd_t;
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int length;
|
int length;
|
||||||
|
@ -361,12 +351,21 @@ void V_Register (void);
|
||||||
void V_ParseDamage (void);
|
void V_ParseDamage (void);
|
||||||
void V_SetContentsColor (int contents);
|
void V_SetContentsColor (int contents);
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// cl_tent
|
// cl_tent
|
||||||
//
|
//
|
||||||
void CL_InitTEnts (void);
|
void CL_InitTEnts (void);
|
||||||
void CL_SignonReply (void);
|
void CL_SignonReply (void);
|
||||||
|
|
||||||
|
//
|
||||||
|
// chase
|
||||||
|
//
|
||||||
|
extern cvar_t chase_active;
|
||||||
|
|
||||||
|
void Chase_Init (void);
|
||||||
|
void TraceLine (vec3_t start, vec3_t end, vec3_t impact);
|
||||||
|
void Chase_UpdateForClient (void); //johnfitz
|
||||||
|
void Chase_UpdateForDrawing (void); //johnfitz
|
||||||
|
|
||||||
#endif /* _CLIENT_H_ */
|
#endif /* _CLIENT_H_ */
|
||||||
|
|
||||||
|
|
|
@ -219,5 +219,27 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
#define TE_BEAM 13
|
#define TE_BEAM 13
|
||||||
// PGM 01/21/97
|
// PGM 01/21/97
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
vec3_t origin;
|
||||||
|
vec3_t angles;
|
||||||
|
unsigned short modelindex; //johnfitz -- was int
|
||||||
|
unsigned short frame; //johnfitz -- was int
|
||||||
|
unsigned char colormap; //johnfitz -- was int
|
||||||
|
unsigned char skin; //johnfitz -- was int
|
||||||
|
unsigned char alpha; //johnfitz -- added
|
||||||
|
int effects;
|
||||||
|
} entity_state_t;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
vec3_t viewangles;
|
||||||
|
|
||||||
|
// intended velocities
|
||||||
|
float forwardmove;
|
||||||
|
float sidemove;
|
||||||
|
float upmove;
|
||||||
|
} usercmd_t;
|
||||||
|
|
||||||
#endif /* _QUAKE_PROTOCOL_H */
|
#endif /* _QUAKE_PROTOCOL_H */
|
||||||
|
|
||||||
|
|
|
@ -204,54 +204,43 @@ typedef struct
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "bspfile.h"
|
#include "bspfile.h"
|
||||||
#include "vid.h"
|
|
||||||
#include "sys.h"
|
#include "sys.h"
|
||||||
#include "zone.h"
|
#include "zone.h"
|
||||||
#include "mathlib.h"
|
#include "mathlib.h"
|
||||||
|
#include "cvar.h"
|
||||||
|
|
||||||
|
#include "protocol.h"
|
||||||
|
#include "net.h"
|
||||||
|
|
||||||
|
#include "cmd.h"
|
||||||
|
#include "crc.h"
|
||||||
|
|
||||||
|
#include "progs.h"
|
||||||
|
#include "server.h"
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
#include "SDL.h"
|
#include "SDL.h"
|
||||||
#include "SDL_opengl.h"
|
#include "SDL_opengl.h"
|
||||||
|
|
||||||
typedef struct
|
#include "console.h"
|
||||||
{
|
|
||||||
vec3_t origin;
|
|
||||||
vec3_t angles;
|
|
||||||
unsigned short modelindex; //johnfitz -- was int
|
|
||||||
unsigned short frame; //johnfitz -- was int
|
|
||||||
unsigned char colormap; //johnfitz -- was int
|
|
||||||
unsigned char skin; //johnfitz -- was int
|
|
||||||
unsigned char alpha; //johnfitz -- added
|
|
||||||
int effects;
|
|
||||||
} entity_state_t;
|
|
||||||
|
|
||||||
|
|
||||||
#include "wad.h"
|
#include "wad.h"
|
||||||
#include "cvar.h"
|
#include "vid.h"
|
||||||
#include "screen.h"
|
#include "screen.h"
|
||||||
#include "draw.h"
|
#include "draw.h"
|
||||||
#include "net.h"
|
#include "render.h"
|
||||||
#include "protocol.h"
|
#include "view.h"
|
||||||
#include "cmd.h"
|
|
||||||
#include "sbar.h"
|
#include "sbar.h"
|
||||||
#include "q_sound.h"
|
#include "q_sound.h"
|
||||||
#include "render.h"
|
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "progs.h"
|
|
||||||
#include "server.h"
|
|
||||||
#include "gl_model.h"
|
#include "gl_model.h"
|
||||||
|
#include "world.h"
|
||||||
|
|
||||||
#include "image.h" //johnfitz
|
#include "image.h" //johnfitz
|
||||||
#include "gl_texmgr.h" //johnfitz
|
#include "gl_texmgr.h" //johnfitz
|
||||||
|
|
||||||
#include "input.h"
|
#include "input.h"
|
||||||
#include "world.h"
|
|
||||||
#include "keys.h"
|
#include "keys.h"
|
||||||
#include "console.h"
|
|
||||||
#include "view.h"
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "crc.h"
|
|
||||||
#include "cdaudio.h"
|
#include "cdaudio.h"
|
||||||
#include "glquake.h"
|
#include "glquake.h"
|
||||||
|
|
||||||
|
@ -306,15 +295,5 @@ extern qboolean isDedicated;
|
||||||
|
|
||||||
extern int minimum_memory;
|
extern int minimum_memory;
|
||||||
|
|
||||||
//
|
|
||||||
// chase
|
|
||||||
//
|
|
||||||
extern cvar_t chase_active;
|
|
||||||
|
|
||||||
void Chase_Init (void);
|
|
||||||
void TraceLine (vec3_t start, vec3_t end, vec3_t impact);
|
|
||||||
void Chase_UpdateForClient (void); //johnfitz
|
|
||||||
void Chase_UpdateForDrawing (void); //johnfitz
|
|
||||||
|
|
||||||
#endif /* __QUAKEDEFS_H */
|
#endif /* __QUAKEDEFS_H */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue