Skip to content

Commit

Permalink
engine: mod_bmodel: stupid way to detect water surfaces (we just chec…
Browse files Browse the repository at this point in the history
…k the name)
  • Loading branch information
a1batross committed Oct 30, 2023
1 parent 0c09e59 commit 2a62aae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engine/common/mod_bmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2032,6 +2032,9 @@ static void Mod_LoadTextureData( model_t *mod, dbspmodel_t *bmod, int textureInd
if( FBitSet( host.features, ENGINE_IMPROVED_LINETRACE ) && mipTex->name[0] == '{' )
SetBits( txFlags, TF_KEEP_SOURCE ); // Paranoia2 texture alpha-tracing

if( Q_stristr( mipTex->name, "water" ))
SetBits( txFlags, TF_KEEP_SOURCE | TF_EXPAND_SOURCE );

usesCustomPalette = Mod_CalcMipTexUsesCustomPalette( mod, bmod, textureIndex );

// check for multi-layered sky texture (quake1 specific)
Expand Down

0 comments on commit 2a62aae

Please sign in to comment.