Fixed FoW on campaign maps

This commit is contained in:
Anuken
2022-03-01 15:26:44 -05:00
parent f8851453ad
commit 440f58ad19
7 changed files with 25 additions and 8 deletions

View File

@@ -37,7 +37,12 @@ public class FileMapGenerator implements WorldGenerator{
Sector sector = state.rules.sector;
world.setGenerating(false);
SaveIO.load(map.file, world.filterContext(map));
SaveIO.load(map.file, world.new FilterContext(map){
@Override
public Sector getSector(){
return sector;
}
});
world.setGenerating(true);
//make sure sector is maintained - don't reset it after map load.