Only use palette if param_type2 is correct

master
Dániel Juhász 2017-04-13 01:24:00 +02:00 committed by Auke Kok
parent 021e667511
commit 6f641df8a5
1 changed files with 4 additions and 1 deletions

View File

@ -786,6 +786,9 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc
tiledef_special[j].backface_culling, material_type); tiledef_special[j].backface_culling, material_type);
} }
if (param_type_2 == CPT2_COLOR ||
param_type_2 == CPT2_COLORED_FACEDIR ||
param_type_2 == CPT2_COLORED_WALLMOUNTED)
palette = tsrc->getPalette(palette_name); palette = tsrc->getPalette(palette_name);
if ((drawtype == NDT_MESH) && (mesh != "")) { if ((drawtype == NDT_MESH) && (mesh != "")) {