Skip to content

Commit

Permalink
Only use palette if param_type2 is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
juhdanad authored and sofar committed Apr 13, 2017
1 parent 021e667 commit 6f641df
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nodedef.cpp
Expand Up @@ -786,7 +786,10 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
tiledef_special[j].backface_culling, material_type);
}

palette = tsrc->getPalette(palette_name);
if (param_type_2 == CPT2_COLOR ||
param_type_2 == CPT2_COLORED_FACEDIR ||
param_type_2 == CPT2_COLORED_WALLMOUNTED)
palette = tsrc->getPalette(palette_name);

if ((drawtype == NDT_MESH) && (mesh != "")) {
// Meshnode drawtype
Expand Down

0 comments on commit 6f641df

Please sign in to comment.