mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-02-23 01:11:45 +00:00
qw: Hide the buffered edicts list in cl_ent.c
The structures used to buffer the edict info which enables the QW prediction logic can be hidden away inside cl_ent.c. Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
bea77b4b38
commit
d8781b30d2
@ -37,6 +37,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
#include "d_iface.h"
|
||||
#endif
|
||||
|
||||
// refresh list
|
||||
// this is double buffered so the last frame
|
||||
// can be scanned for oldorigins of trailing objects
|
||||
int cl_numvisedicts;
|
||||
entity_t *cl_visedicts;
|
||||
static int cl_oldnumvisedicts;
|
||||
static entity_t *cl_oldvisedicts;
|
||||
static entity_t cl_visedicts_list[2][MAX_VISEDICTS];
|
||||
|
||||
static struct predicted_player {
|
||||
int flags;
|
||||
qboolean active;
|
||||
|
@ -115,13 +115,6 @@ entity_t cl_static_entities[MAX_STATIC_ENTITIES];
|
||||
lightstyle_t cl_lightstyle[MAX_LIGHTSTYLES];
|
||||
dlight_t cl_dlights[MAX_DLIGHTS];
|
||||
|
||||
// refresh list
|
||||
// this is double buffered so the last frame
|
||||
// can be scanned for oldorigins of trailing objects
|
||||
int cl_numvisedicts, cl_oldnumvisedicts;
|
||||
entity_t *cl_visedicts, *cl_oldvisedicts;
|
||||
entity_t cl_visedicts_list[2][MAX_VISEDICTS];
|
||||
|
||||
double connect_time = -1; // for connection retransmits
|
||||
|
||||
quakeparms_t host_parms;
|
||||
|
@ -378,9 +378,8 @@ qboolean CL_DemoBehind(void);
|
||||
void CL_BeginServerConnect(void);
|
||||
|
||||
#define MAX_VISEDICTS 256
|
||||
extern int cl_numvisedicts, cl_oldnumvisedicts;
|
||||
extern entity_t *cl_visedicts, *cl_oldvisedicts;
|
||||
extern entity_t cl_visedicts_list[2][MAX_VISEDICTS];
|
||||
extern int cl_numvisedicts;
|
||||
extern entity_t *cl_visedicts;
|
||||
|
||||
extern char emodel_name[];
|
||||
extern char pmodel_name[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user