diff options
author | Tim Angus <tim@ngus.net> | 2002-07-29 18:43:15 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-07-29 18:43:15 +0000 |
commit | c92d5d545127ef86c85607b6edb361c42bb9db68 (patch) | |
tree | b27284244a8a5d3f0b6f51b008a51ea141d58948 /src/game/bg_lib.c | |
parent | e633284d8b8f2fd4cbc246d45f217913bdd19dd8 (diff) |
* Scoreboard
* Level 1 class blob fire
* Loading screen
* "SPECTATOR" display uses TA UI
* Buildable weapon delays
* Display of build points on huds
Diffstat (limited to 'src/game/bg_lib.c')
-rw-r--r-- | src/game/bg_lib.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/game/bg_lib.c b/src/game/bg_lib.c index 7041aa39..cd241f77 100644 --- a/src/game/bg_lib.c +++ b/src/game/bg_lib.c @@ -256,6 +256,22 @@ int strcmp( const char *string1, const char *string2 ) { return *string1 - *string2; } +//TA: +char *strrchr( const char *string, int c ) +{ + int i, length = strlen( string ); + char *p; + + for( i = length - 1; i >= 0; i-- ) + { + p = (char *)&string[ i ]; + + if( *p == c ) + return (char *)p; + } + + return (char *)0; +} char *strchr( const char *string, int c ) { while ( *string ) { |