Implemented CG_ArchiveVSSGlobals()

This commit is contained in:
smallmodel 2023-09-06 20:54:33 +02:00
parent 5ea3fc28f7
commit b4d8982341
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 11 additions and 0 deletions

View file

@ -35,6 +35,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "cg_public.h"
#ifdef __cplusplus
class MemArchiver;
extern "C" {
#endif
@ -912,6 +914,9 @@ qboolean CG_LightStyleColor(int style, int realtime, vec4_t color, qboolean clam
//
// cg_volumetricsmoke.cpp
void CG_ResetVSSSources(void);
#ifdef __cplusplus
void CG_ArchiveVSSGlobals(MemArchiver& archiver);
#endif
void CG_AddVSSSources(void);
extern cvar_t *vss_draw;

View file

@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include "cg_local.h"
#include "cg_commands.h"
#include "memarchiver.h"
const char *cg_vsstypes[] = {
"default",
@ -214,6 +215,11 @@ void CG_ResetVSSSources()
lastVSSFrameTime = cg.time;
}
void CG_ArchiveVSSGlobals(MemArchiver& archiver)
{
archiver.ArchiveTime(&lastVSSFrameTime);
}
void ClientGameCommandManager::InitializeVSSSources()
{
int i;