From 327eb330edcc4ed9bf3389bca01279bc165d0b59 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 10 Sep 2022 20:06:16 +0300 Subject: [PATCH] ref: gl: minimize dependency on internal engine headers --- ref/gl/gl_beams.c | 1 - ref/gl/gl_decals.c | 1 - ref/gl/gl_rpart.c | 1 - ref/gl/gl_sprite.c | 1 - ref/gl/gl_studio.c | 2 -- 5 files changed, 6 deletions(-) diff --git a/ref/gl/gl_beams.c b/ref/gl/gl_beams.c index 215eb890..4e436d17 100644 --- a/ref/gl/gl_beams.c +++ b/ref/gl/gl_beams.c @@ -19,7 +19,6 @@ GNU General Public License for more details. #include "entity_types.h" #include "triangleapi.h" #include "customentity.h" -#include "cl_tent.h" #include "pm_local.h" #include "studio.h" diff --git a/ref/gl/gl_decals.c b/ref/gl/gl_decals.c index c9e70983..2b3f82b8 100644 --- a/ref/gl/gl_decals.c +++ b/ref/gl/gl_decals.c @@ -14,7 +14,6 @@ GNU General Public License for more details. */ #include "gl_local.h" -#include "cl_tent.h" #define DECAL_OVERLAP_DISTANCE 2 #define DECAL_DISTANCE 4 // too big values produce more clipped polygons diff --git a/ref/gl/gl_rpart.c b/ref/gl/gl_rpart.c index fb4f6cac..00954af1 100644 --- a/ref/gl/gl_rpart.c +++ b/ref/gl/gl_rpart.c @@ -19,7 +19,6 @@ GNU General Public License for more details. #include "entity_types.h" #include "triangleapi.h" #include "pm_local.h" -#include "cl_tent.h" #include "studio.h" static float gTracerSize[11] = { 1.5f, 0.5f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 1.0f }; diff --git a/ref/gl/gl_sprite.c b/ref/gl/gl_sprite.c index ceffbb5a..006fe135 100644 --- a/ref/gl/gl_sprite.c +++ b/ref/gl/gl_sprite.c @@ -18,7 +18,6 @@ GNU General Public License for more details. #include "sprite.h" #include "studio.h" #include "entity_types.h" -#include "cl_tent.h" // it's a Valve default value for LoadMapSprite (probably must be power of two) #define MAPSPRITE_SIZE 128 diff --git a/ref/gl/gl_studio.c b/ref/gl/gl_studio.c index c71630d9..910dd07b 100644 --- a/ref/gl/gl_studio.c +++ b/ref/gl/gl_studio.c @@ -20,8 +20,6 @@ GNU General Public License for more details. #include "triangleapi.h" #include "studio.h" #include "pm_local.h" -#include "cl_tent.h" -//#include "client.h" #include "pmtrace.h" #define EVENT_CLIENT 5000 // less than this value it's a server-side studio events