Browse Source

engine: expose world version through RefAPI

pull/2/head
Alibek Omarov 11 months ago
parent
commit
c96cf7e22d
  1. 2
      engine/client/cl_render.c
  2. 1
      engine/ref_api.h

2
engine/client/cl_render.c

@ -207,6 +207,8 @@ intptr_t CL_RenderGetParm( const int parm, const int arg, const qboolean checkRe
return pfnNumberOfEntities(); return pfnNumberOfEntities();
case PARM_NUMMODELS: case PARM_NUMMODELS:
return cl.nummodels; return cl.nummodels;
case PARM_WORLD_VERSION:
return world.version;
} }
} }
return 0; return 0;

1
engine/ref_api.h

@ -261,6 +261,7 @@ typedef enum
PARM_LOCAL_GAME = -11, PARM_LOCAL_GAME = -11,
PARM_NUMENTITIES = -12, // local game only PARM_NUMENTITIES = -12, // local game only
PARM_NUMMODELS = -13, // cl.nummodels PARM_NUMMODELS = -13, // cl.nummodels
PARM_WORLD_VERSION = -14,
} ref_parm_e; } ref_parm_e;
typedef struct ref_api_s typedef struct ref_api_s

Loading…
Cancel
Save