Added checksum return parameter in CL_CM_LoadMap for cgame

This commit is contained in:
smallmodel 2023-08-28 20:28:59 +02:00
parent 7433677ead
commit acc8081ef2
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 5 additions and 5 deletions

View file

@ -163,7 +163,7 @@ functions exported to the main executable
void (*SendClientCommand)(const char *s);
// CM functions
void (*CM_LoadMap)(const char *name);
void (*CM_LoadMap)(const char *name, int* checksum);
clipHandle_t (*CM_InlineModel)(int index); // 0 = world, 1+ = bmodels
int (*CM_NumInlineModels)(void);
int (*CM_PointContents)(const vec3_t p, int headnode);

View file

@ -435,10 +435,10 @@ CL_CM_LoadMap
Just adds default parameters that cgame doesn't need to know about
====================
*/
void CL_CM_LoadMap( const char *mapname ) {
int checksum;
CM_LoadMap( mapname, qtrue, &checksum );
void CL_CM_LoadMap( const char *mapname, int *checksum ) {
CM_LoadMap( mapname, qtrue, checksum );
// prepare world vis data
re.SetWorldVisData(CM_VisibilityPointer());
}
/*