MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Q3_SetLocation

Function Q3_SetLocation

code/game/Q3_Interface.cpp:6597–6615  ·  view source on GitHub ↗

============ Q3_SetLocation Description : Return type : qboolean Argument : int entID Argument : const char *location ============ */

Source from the content-addressed store, hash-verified

6595============
6596*/
6597static qboolean Q3_SetLocation( int entID, const char *location )
6598{
6599 gentity_t *ent = &g_entities[entID];
6600 char *currentLoc;
6601
6602 if ( !ent )
6603 {
6604 return qtrue;
6605 }
6606
6607 currentLoc = G_GetLocationForEnt( ent );
6608 if ( currentLoc && currentLoc[0] && Q_stricmp( location, currentLoc ) == 0 )
6609 {
6610 return qtrue;
6611 }
6612
6613 ent->message = G_NewString( location );
6614 return qfalse;
6615}
6616
6617/*
6618============

Callers 1

SetMethod · 0.70

Calls 3

Q_stricmpFunction · 0.85
G_GetLocationForEntFunction · 0.70
G_NewStringFunction · 0.70

Tested by

no test coverage detected