mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
engine: make Mod_SampleSizeForFace accept const surface
This commit is contained in:
parent
a34c22fb10
commit
40c9a2fb82
@ -980,7 +980,7 @@ Mod_SampleSizeForFace
|
||||
return the current lightmap resolution per face
|
||||
==================
|
||||
*/
|
||||
int Mod_SampleSizeForFace( msurface_t *surf )
|
||||
int Mod_SampleSizeForFace( const msurface_t *surf )
|
||||
{
|
||||
if( !surf || !surf->texinfo )
|
||||
return LM_SAMPLE_SIZE;
|
||||
|
@ -155,7 +155,7 @@ int Mod_CheckLump( const char *filename, const int lump, int *lumpsize );
|
||||
int Mod_ReadLump( const char *filename, const int lump, void **lumpdata, int *lumpsize );
|
||||
int Mod_SaveLump( const char *filename, const int lump, void *lumpdata, int lumpsize );
|
||||
mleaf_t *Mod_PointInLeaf( const vec3_t p, mnode_t *node );
|
||||
int Mod_SampleSizeForFace( msurface_t *surf );
|
||||
int Mod_SampleSizeForFace( const msurface_t *surf );
|
||||
byte *Mod_GetPVSForPoint( const vec3_t p );
|
||||
void Mod_UnloadBrushModel( model_t *mod );
|
||||
void Mod_PrintWorldStats_f( void );
|
||||
|
@ -307,7 +307,7 @@ typedef struct ref_api_s
|
||||
qboolean (*CL_AddVisibleEntity)( cl_entity_t *ent, int entityType );
|
||||
|
||||
// brushes
|
||||
int (*Mod_SampleSizeForFace)( struct msurface_s *surf );
|
||||
int (*Mod_SampleSizeForFace)( const struct msurface_s *surf );
|
||||
qboolean (*Mod_BoxVisible)( const vec3_t mins, const vec3_t maxs, const byte *visbits );
|
||||
struct world_static_s *(*GetWorld)( void ); // returns &world
|
||||
mleaf_t *(*Mod_PointInLeaf)( const vec3_t p, mnode_t *node );
|
||||
|
Loading…
Reference in New Issue
Block a user