From 3984a5802576821d87d6a948ee86aa192ea5c891 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 29 Mar 2020 17:01:45 +0300 Subject: [PATCH] ref_soft: upgrade to latest RefAPI and libpublic --- r_light.c | 2 +- r_local.h | 2 +- r_main.c | 2 +- r_math.c | 2 +- r_studio.c | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/r_light.c b/r_light.c index 8f292e29..4d4f9c84 100644 --- a/r_light.c +++ b/r_light.c @@ -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 diff --git a/r_local.h b/r_local.h index 67411b56..36d34580 100644 --- a/r_local.h +++ b/r_local.h @@ -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" diff --git a/r_main.c b/r_main.c index fb37e0f9..a67d039d 100644 --- a/r_main.c +++ b/r_main.c @@ -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" diff --git a/r_math.c b/r_math.c index f8a43d7f..4c835623 100644 --- a/r_math.c +++ b/r_math.c @@ -14,7 +14,7 @@ GNU General Public License for more details. */ #include "r_local.h" -#include "mathlib.h" +#include "xash3d_mathlib.h" /* ======================================================================== diff --git a/r_studio.c b/r_studio.c index 620788e1..6510fd85 100644 --- a/r_studio.c +++ b/r_studio.c @@ -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 */ 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; } }