- use setter methods for glow initialization of sectors.

This commit is contained in:
Christoph Oelckers 2018-08-16 23:05:04 +02:00
parent 00c8c6e3b2
commit d37cd63fda
1 changed files with 4 additions and 4 deletions

View File

@ -1675,19 +1675,19 @@ public:
break; break;
case NAME_floorglowcolor: case NAME_floorglowcolor:
sec->planes[sector_t::floor].GlowColor = CheckInt(key); sec->SetGlowColor(sector_t::floor, CheckInt(key));
break; break;
case NAME_floorglowheight: case NAME_floorglowheight:
sec->planes[sector_t::floor].GlowHeight = (float)CheckFloat(key); sec->SetGlowHeight(sector_t::floor, (float)CheckFloat(key));
break; break;
case NAME_ceilingglowcolor: case NAME_ceilingglowcolor:
sec->planes[sector_t::ceiling].GlowColor = CheckInt(key); sec->SetGlowColor(sector_t::ceiling, CheckInt(key));
break; break;
case NAME_ceilingglowheight: case NAME_ceilingglowheight:
sec->planes[sector_t::ceiling].GlowHeight = (float)CheckFloat(key); sec->SetGlowHeight(sector_t::ceiling, (float)CheckFloat(key));
break; break;
case NAME_Noattack: case NAME_Noattack: