Browse Source

ref_soft: upgrade to latest RefAPI and libpublic

pull/2/head
Alibek Omarov 5 years ago
parent
commit
3984a58025
  1. 2
      r_light.c
  2. 2
      r_local.h
  3. 2
      r_main.c
  4. 2
      r_math.c
  5. 6
      r_studio.c

2
r_light.c

@ -16,7 +16,7 @@ GNU General Public License for more details. @@ -16,7 +16,7 @@ GNU General Public License for more details.
#include "r_local.h"
#include "pm_local.h"
#include "studio.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "ref_params.h"
//unused, need refactor

2
r_local.h

@ -25,7 +25,7 @@ GNU General Public License for more details. @@ -25,7 +25,7 @@ GNU General Public License for more details.
#include "protocol.h"
#include "dlight.h"
#include "ref_api.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "ref_params.h"
#include "enginefeatures.h"
#include "com_strings.h"

2
r_main.c

@ -14,7 +14,7 @@ GNU General Public License for more details. @@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "r_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "library.h"
//#include "beamdef.h"
//#include "particledef.h"

2
r_math.c

@ -14,7 +14,7 @@ GNU General Public License for more details. @@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "r_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
/*
========================================================================

6
r_studio.c

@ -14,7 +14,7 @@ GNU General Public License for more details. @@ -14,7 +14,7 @@ GNU General Public License for more details.
*/
#include "r_local.h"
#include "mathlib.h"
#include "xash3d_mathlib.h"
#include "const.h"
#include "r_studioint.h"
#include "triangleapi.h"
@ -2432,11 +2432,11 @@ R_StudioSetRemapColors @@ -2432,11 +2432,11 @@ R_StudioSetRemapColors
*/
static void R_StudioSetRemapColors( int newTop, int newBottom )
{
gEngfuncs.CL_AllocRemapInfo( newTop, newBottom );
gEngfuncs.CL_AllocRemapInfo( RI.currententity, newTop, newBottom );
if( gEngfuncs.CL_GetRemapInfoForEntity( RI.currententity ))
{
gEngfuncs.CL_UpdateRemapInfo( newTop, newBottom );
gEngfuncs.CL_UpdateRemapInfo( RI.currententity, newTop, newBottom );
m_fDoRemap = true;
}
}

Loading…
Cancel
Save