From c92d5d545127ef86c85607b6edb361c42bb9db68 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 29 Jul 2002 18:43:15 +0000 Subject: * Scoreboard * Level 1 class blob fire * Loading screen * "SPECTATOR" display uses TA UI * Buildable weapon delays * Display of build points on huds --- src/game/bg_lib.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/game/bg_lib.c') 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 ) { -- cgit