From 91ea3ed51889bb0d21f30b2330b2520fd46fd9c8 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 28 Jul 2022 02:16:20 +0000 Subject: [PATCH] Change 'player minlight' rules from the singular player.mdl to any entity with a player's colourmap. This is to fix ktx's vwplayer.mdl not responding like players should. This may also slightly affect TF's sentries and telepads and stuff. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6284 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_alias.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/gl/gl_alias.c b/engine/gl/gl_alias.c index 845297780..c2e715971 100644 --- a/engine/gl/gl_alias.c +++ b/engine/gl/gl_alias.c @@ -1567,7 +1567,7 @@ qboolean R_CalcModelLighting(entity_t *e, model_t *clmodel) //MORE HUGE HACKS! WHEN WILL THEY CEASE! // clamp lighting so it doesn't overbright as much // ZOID: never allow players to go totally black - if (clmodel->engineflags & MDLF_PLAYER) + if (e->playerindex >= 0) { float fb = r_fullbrightSkins.value; if (fb > cls.allow_fbskins)