diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-19 07:09:55 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:56 +0000 |
commit | 4bede371a0f04d5edf3bd28f503ccf11cc9c6f47 (patch) | |
tree | d2d2dfa738432e3f13893902d5392903cbd13a13 /src/game/bg_public.h | |
parent | be79439b479902f5b464511e95c4c5455071e8fa (diff) |
* Use binary searching instead of linear searching for many static arrays
Diffstat (limited to 'src/game/bg_public.h')
-rw-r--r-- | src/game/bg_public.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index 30ac860d..e952624a 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -1307,3 +1307,9 @@ voiceTrack_t *BG_VoiceTrackFind( voiceTrack_t *head, team_t team, int BG_LoadEmoticons( char names[ ][ MAX_EMOTICON_NAME_LEN ], int widths[ ] ); char *BG_TeamName( team_t team ); + +typedef struct +{ + const char *name; +} dummyCmd_t; +int cmdcmp( const void *a, const void *b ); |