Skip to content

Commit

Permalink
Fix trap_LinkEntity
Browse files Browse the repository at this point in the history
Added support to show actual classname of entities in warning and where it is linked at for debugging.
  • Loading branch information
ensiform committed Sep 4, 2024
1 parent 21fed9d commit aaaaa15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/game/g_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ qboolean trap_InPVS( const vec3_t p1, const vec3_t p2 );
qboolean trap_InPVSIgnorePortals( const vec3_t p1, const vec3_t p2 );
void trap_AdjustAreaPortalState( gentity_t *ent, qboolean open );
qboolean trap_AreasConnected( int area1, int area2 );
void trap_LinkEntity( gentity_t *ent );
void trap_LinkEntityExt( gentity_t *ent, const char *file, int line );
#define trap_LinkEntity( ent ) trap_LinkEntityExt( ent, __FILE__, __LINE__ )
void trap_UnlinkEntity( gentity_t *ent );
int trap_EntitiesInBox( const vec3_t mins, const vec3_t maxs, int *entityList, int maxcount );
qboolean trap_EntityContact( const vec3_t mins, const vec3_t maxs, const gentity_t *ent );
Expand Down

0 comments on commit aaaaa15

Please sign in to comment.