mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Added checksum return parameter in CL_CM_LoadMap for cgame
This commit is contained in:
parent
7433677ead
commit
acc8081ef2
2 changed files with 5 additions and 5 deletions
|
@ -163,7 +163,7 @@ functions exported to the main executable
|
||||||
void (*SendClientCommand)(const char *s);
|
void (*SendClientCommand)(const char *s);
|
||||||
|
|
||||||
// CM functions
|
// 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
|
clipHandle_t (*CM_InlineModel)(int index); // 0 = world, 1+ = bmodels
|
||||||
int (*CM_NumInlineModels)(void);
|
int (*CM_NumInlineModels)(void);
|
||||||
int (*CM_PointContents)(const vec3_t p, int headnode);
|
int (*CM_PointContents)(const vec3_t p, int headnode);
|
||||||
|
|
|
@ -435,10 +435,10 @@ CL_CM_LoadMap
|
||||||
Just adds default parameters that cgame doesn't need to know about
|
Just adds default parameters that cgame doesn't need to know about
|
||||||
====================
|
====================
|
||||||
*/
|
*/
|
||||||
void CL_CM_LoadMap( const char *mapname ) {
|
void CL_CM_LoadMap( const char *mapname, int *checksum ) {
|
||||||
int checksum;
|
CM_LoadMap( mapname, qtrue, checksum );
|
||||||
|
// prepare world vis data
|
||||||
CM_LoadMap( mapname, qtrue, &checksum );
|
re.SetWorldVisData(CM_VisibilityPointer());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue