mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01: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();
|
||||
case PARM_NUMMODELS:
|
||||
return cl.nummodels;
|
||||
case PARM_WORLD_VERSION:
|
||||
return world.version;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
@ -261,6 +261,7 @@ typedef enum
|
||||
PARM_LOCAL_GAME = -11,
|
||||
PARM_NUMENTITIES = -12, // local game only
|
||||
PARM_NUMMODELS = -13, // cl.nummodels
|
||||
PARM_WORLD_VERSION = -14,
|
||||
} ref_parm_e;
|
||||
|
||||
typedef struct ref_api_s
|
||||
|
Loading…
Reference in New Issue
Block a user