]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
fix for EF_FLAME and lots of other bugs with 16bit/8bit fields (modelindex, frame...
[xonotic/darkplaces.git] / client.h
index 5e2831d555f83159d688f30052e84080df4c5ce9..64e9bec6d942674f4bf82c0127880e7e967293a3 100644 (file)
--- a/client.h
+++ b/client.h
@@ -198,6 +198,7 @@ typedef struct
                                                                // throw out the first couple, so the player
                                                                // doesn't accidentally do something the
                                                                // first frame
+       float           sendnoptime;    // send a clc_nop periodically until connected
        usercmd_t       cmd;                    // last command sent to the server
 
 // information for local display
@@ -274,6 +275,14 @@ typedef struct
 
 // frag scoreboard
        scoreboard_t    *scores;                // [cl.maxclients]
+
+       vec3_t          viewentorigin;
+       float           viewzoom;                       // LordHavoc: sniping zoom, QC controlled
+       float           viewzoomold, viewzoomnew; // for interpolation
+
+       // entity database stuff
+       vec3_t          viewentoriginold, viewentoriginnew;
+       entity_database_t entitydatabase;
 }
 client_state_t;
 
@@ -426,6 +435,7 @@ void CL_InitTEnts (void);
 #define PARTICLE_UPRIGHT_FACING 2
 #define PARTICLE_ORIENTED_DOUBLESIDED 3
 
+/*
 typedef struct renderparticle_s
 {
        int tex;
@@ -439,6 +449,7 @@ typedef struct renderparticle_s
        float color[4];
 }
 renderparticle_t;
+*/
 
 void CL_Particles_Clear(void);
 void CL_Particles_Init(void);
@@ -495,10 +506,10 @@ typedef struct
        int numentities;
        entity_render_t **entities;
 
-       int numparticles;
-       struct renderparticle_s *particles;
+       //int numparticles;
+       //struct renderparticle_s *particles;
 
-       byte drawqueue[MAX_DRAWQUEUE];
+       qbyte drawqueue[MAX_DRAWQUEUE];
        int drawqueuesize;
 }
 refdef_t;