- fixed issue with parsing useowncoloradd UDMF flags

This commit is contained in:
alexey.lysiuk 2020-10-31 19:14:22 +02:00
parent b8b93e0dd8
commit ff9a56dc0b

View file

@ -1410,12 +1410,14 @@ public:
break; break;
case NAME_useowncoloradd_top: case NAME_useowncoloradd_top:
Flag(sd->textures[side_t::top].flags, side_t::part::UseOwnAdditiveColor, key); if (Flag(sd->textures[side_t::top].flags, side_t::part::UseOwnAdditiveColor, key))
sd->Flags |= WALLF_EXTCOLOR; sd->Flags |= WALLF_EXTCOLOR;
break;
case NAME_useowncoloradd_mid: case NAME_useowncoloradd_mid:
if (Flag(sd->textures[side_t::mid].flags, side_t::part::UseOwnAdditiveColor, key)) if (Flag(sd->textures[side_t::mid].flags, side_t::part::UseOwnAdditiveColor, key))
sd->Flags |= WALLF_EXTCOLOR; sd->Flags |= WALLF_EXTCOLOR;
break;
case NAME_useowncoloradd_bottom: case NAME_useowncoloradd_bottom:
if (Flag(sd->textures[side_t::bottom].flags, side_t::part::UseOwnAdditiveColor, key)) if (Flag(sd->textures[side_t::bottom].flags, side_t::part::UseOwnAdditiveColor, key))