From 7350be6e7f69fc957121a31a5385347852c24161 Mon Sep 17 00:00:00 2001 From: mittorn Date: Fri, 20 Apr 2018 21:48:12 +0000 Subject: [PATCH] Fix build after update --- engine/client/cl_game.c | 79 +---------------------------------------- 1 file changed, 1 insertion(+), 78 deletions(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 87040b14..991d7216 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -2849,7 +2849,7 @@ LocalPlayerInfo_ValueForKey */ static const char *GAME_EXPORT LocalPlayerInfo_ValueForKey( const char* key ) { - return Info_ValueForKey( CL_Userinfo(), key ); + return Info_ValueForKey( cls.userinfo, key ); } /* @@ -3065,83 +3065,6 @@ char *pfnParseFile( char *data, char *token ) return out; } -/* -============= -pfnGetServerTime - -============= -*/ -float pfnGetClientOldTime( void ) -{ - return cl.oldtime; -} - -/* -============= -pfnGetGravity - -============= -*/ -float pfnGetGravity( void ) -{ - return clgame.movevars.gravity; -} - -/* -============= -LocalPlayerInfo_ValueForKey - -============= -*/ -const char *LocalPlayerInfo_ValueForKey( const char* key ) -{ - return Info_ValueForKey( cls.userinfo, key ); -} - -/* -============= -CL_FillRGBABlend - -============= -*/ -void CL_FillRGBABlend( int x, int y, int w, int h, int r, int g, int b, int a ) -{ - r = bound( 0, r, 255 ); - g = bound( 0, g, 255 ); - b = bound( 0, b, 255 ); - a = bound( 0, a, 255 ); - - SPR_AdjustSize( (float *)&x, (float *)&y, (float *)&w, (float *)&h ); - - pglDisable( GL_TEXTURE_2D ); - pglEnable( GL_BLEND ); - pglTexEnvi( GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE ); - pglBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); - pglColor4f( r / 255.0f, g / 255.0f, b / 255.0f, a / 255.0f ); - - pglBegin( GL_QUADS ); - pglVertex2f( x, y ); - pglVertex2f( x + w, y ); - pglVertex2f( x + w, y + h ); - pglVertex2f( x, y + h ); - pglEnd (); - - pglColor3f( 1.0f, 1.0f, 1.0f ); - pglEnable( GL_TEXTURE_2D ); - pglDisable( GL_BLEND ); -} - -/* -============= -pfnGetAppID - -============= -*/ -int pfnGetAppID( void ) -{ - return 70; -} - /* ================= TriApi implementation