]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
close packs when clearing search path
[xonotic/darkplaces.git] / client.h
index 83e488466986fbaf4e41a9e59278295b342cf02f..0b16a62d0a8089b5b99bf1b778e4c0231b0e46ee 100644 (file)
--- a/client.h
+++ b/client.h
@@ -439,6 +439,7 @@ typedef struct capturevideostate_s
        double starttime;
        double framerate;
        // for AVI saving some values have to be written after capture ends
+       fs_offset_t videofile_firstchunkframes_offset;
        fs_offset_t videofile_totalframes_offset1;
        fs_offset_t videofile_totalframes_offset2;
        fs_offset_t videofile_totalsampleframes_offset;
@@ -450,7 +451,8 @@ typedef struct capturevideostate_s
        int soundrate;
        int frame;
        int soundsampleframe; // for AVI saving
-       unsigned char *buffer;
+       unsigned char *screenbuffer;
+       unsigned char *outbuffer;
        sizebuf_t riffbuffer;
        unsigned char riffbufferdata[128];
        // note: riffindex buffer has an allocated ->data member, not static like most!
@@ -460,6 +462,7 @@ typedef struct capturevideostate_s
        short rgbtoyuvscaletable[3][3][256];
        unsigned char yuvnormalizetable[3][256];
        char basename[64];
+       int width, height;
 }
 capturevideostate_t;
 
@@ -943,8 +946,11 @@ typedef struct client_state_s
        //qboolean qw_spectator;
 
        // movement parameters for client prediction
+       float movevars_wallfriction;
+       float movevars_waterfriction;
+       float movevars_friction;
        float movevars_ticrate;
-       float movevars_slowmo;
+       float movevars_timescale;
        float movevars_gravity;
        float movevars_stopspeed;
        float movevars_maxspeed;
@@ -952,8 +958,6 @@ typedef struct client_state_s
        float movevars_accelerate;
        float movevars_airaccelerate;
        float movevars_wateraccelerate;
-       float movevars_friction;
-       float movevars_waterfriction;
        float movevars_entgravity;
        float movevars_jumpvelocity;
        float movevars_edgefriction;
@@ -999,6 +1003,11 @@ typedef struct client_state_s
        // this is updated to cl.movement_origin whenever health is < 1
        // used by %d print in say/say_team messages if cl_locs_enable is on
        vec3_t lastdeathorigin;
+
+       // processing buffer used by R_BuildLightMap, reallocated as needed,
+       // freed on each level change
+       size_t buildlightmapmemorysize;
+       unsigned char *buildlightmapmemory;
 }
 client_state_t;