Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- use setter methods for glow initialization of sectors.
  • Loading branch information
coelckers committed Aug 16, 2018
1 parent 3baceb7 commit dd777ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/p_udmf.cpp
Expand Up @@ -1676,19 +1676,19 @@ class UDMFParser : public UDMFParserBase
break;

case NAME_floorglowcolor:
sec->planes[sector_t::floor].GlowColor = CheckInt(key);
sec->SetGlowColor(sector_t::floor, CheckInt(key));
break;

case NAME_floorglowheight:
sec->planes[sector_t::floor].GlowHeight = (float)CheckFloat(key);
sec->SetGlowHeight(sector_t::floor, (float)CheckFloat(key));
break;

case NAME_ceilingglowcolor:
sec->planes[sector_t::ceiling].GlowColor = CheckInt(key);
sec->SetGlowColor(sector_t::ceiling, CheckInt(key));
break;

case NAME_ceilingglowheight:
sec->planes[sector_t::ceiling].GlowHeight = (float)CheckFloat(key);
sec->SetGlowHeight(sector_t::ceiling, (float)CheckFloat(key));
break;

case NAME_Noattack:
Expand Down

0 comments on commit dd777ae

Please sign in to comment.