2
0
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:
Alibek Omarov 2023-12-15 07:38:07 +03:00
parent 46c61660cf
commit c96cf7e22d
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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