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
This commit is contained in:
Spoike 2022-07-28 02:16:20 +00:00
parent 03440263e2
commit 91ea3ed518
1 changed files with 1 additions and 1 deletions

View File

@ -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)