File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -330,6 +330,12 @@ private void CreateGraphicalNodesFromBaseNodes()
330330 private void ReloadSections ( )
331331 {
332332 MapLoader . ReadBasicSection ( this , LoadedINI ) ;
333+
334+ // Refresh light posts in case they got their INI config changed - saves the user
335+ // from having to reload the map to refresh lighting changes
336+ Rules . BuildingTypes . ForEach ( bt => initializer . ReadObjectTypePropertiesFromINI ( bt , LoadedINI ) ) ;
337+ Structures . ForEach ( s => s . LightTiles ( Tiles ) ) ;
338+
333339 Lighting . ReadFromIniFile ( LoadedINI ) ;
334340 }
335341
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ public override byte Facing
159159
160160 public void LightTiles ( MapTile [ ] [ ] tiles )
161161 {
162+ ClearLitTiles ( ) ;
163+
162164 Dictionary < MapTile , double > litTiles = new ( ) ;
163165 int foundationWidth = ObjectType . ArtConfig . Foundation . Width ;
164166 int foundationHeight = ObjectType . ArtConfig . Foundation . Height ;
You can’t perform that action at this time.
0 commit comments