mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-25 22:34:24 +00:00
engine: expose world version through RefAPI
This commit is contained in:
parent
46c61660cf
commit
c96cf7e22d
@ -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;
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user