From 4bede371a0f04d5edf3bd28f503ccf11cc9c6f47 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Mon, 19 Oct 2009 07:09:55 +0000 Subject: * Use binary searching instead of linear searching for many static arrays --- src/game/bg_public.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game/bg_public.h') 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 ); -- cgit