| 1010 | */ |
| 1011 | |
| 1012 | const 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 | |
| 1027 | qboolean Q_InBitflags( const uint32_t *bits, int index, uint32_t bitsPerByte ) { |
| 1028 | return ( bits[index / bitsPerByte] & (1 << (index % bitsPerByte)) ) ? qtrue : qfalse; |
no test coverage detected