]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_sprite.c
DP_EF_RESTARTANIM_BIT
[xonotic/darkplaces.git] / model_sprite.c
index d944da3f273070a8f5f6b0ea95e09c21f909cb88..a08cb8c36cffc9553185f79ce85470b15d27e178 100644 (file)
@@ -52,7 +52,7 @@ static void Mod_SpriteSetupTexture(texture_t *texture, skinframe_t *skinframe, q
                texture->basematerialflags |= MATERIALFLAG_FULLBRIGHT;
        if (additive)
                texture->basematerialflags |= MATERIALFLAG_ADD | MATERIALFLAG_BLENDED | MATERIALFLAG_NOSHADOW;
-       else if (skinframe->fog)
+       else if (skinframe->hasalpha)
                texture->basematerialflags |= MATERIALFLAG_ALPHA | MATERIALFLAG_BLENDED | MATERIALFLAG_NOSHADOW;
        texture->currentmaterialflags = texture->basematerialflags;
        texture->numskinframes = 1;