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

Function GetStringForID

code/qcommon/q_shared.cpp:1012–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1010*/
1011
1012const char *GetStringForID( const stringID_table_t *table, int id )
1013{
1014 int index = 0;
1015
1016 while ( VALIDSTRING( table[index].name ) )
1017 {
1018 if ( table[index].id == id )
1019 return table[index].name;
1020
1021 index++;
1022 }
1023
1024 return NULL;
1025}
1026
1027qboolean Q_InBitflags( const uint32_t *bits, int index, uint32_t bitsPerByte ) {
1028 return ( bits[index / bitsPerByte] & (1 << (index % bitsPerByte)) ) ? qtrue : qfalse;

Callers 7

Q3_GetAnimLowerFunction · 0.50
Q3_GetAnimUpperFunction · 0.50
GetStringMethod · 0.50
Svcmd_PlayerTeam_fFunction · 0.50
NPC_Kill_fFunction · 0.50
ParseAnimationEvtBlockFunction · 0.50
G_ActivateBehaviorFunction · 0.50

Calls 1

VALIDSTRINGFunction · 0.85

Tested by

no test coverage detected