SHA256
Add Disable Tile Culling Option
This commit is contained in:
1 parent
7c6210d2c4
commit
d1ba5d5c18
7 files changed
+86
-2
No files matched your search
@@ -30,8 +30,19 @@ public static class scnGamePatch
|
||||
[HarmonyPatch("Play")]
|
||||
public static void ProcessFloors()
|
||||
{
|
||||
var nonTile = RenderManager.Instance.stage >= RenderStage.Load &&
|
||||
RenderManager.Instance.Configuration.AdvancedConfig.NonTile;
|
||||
if (RenderManager.Instance &&
|
||||
RenderManager.Instance.stage >= RenderStage.Load &&
|
||||
RenderManager.Instance.Configuration?.AdvancedConfig?.DisableTileCulling == true)
|
||||
{
|
||||
foreach (var floor in scrLevelMaker.instance.listFloors)
|
||||
{
|
||||
if (floor) floor.enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
var nonTile = RenderManager.Instance &&
|
||||
RenderManager.Instance.stage >= RenderStage.Load &&
|
||||
RenderManager.Instance.Configuration?.AdvancedConfig?.NonTile == true;
|
||||
|
||||
if (!nonTile) return;
|
||||
foreach (var floor in scrLevelMaker.instance.listFloors)
|
||||
|
||||
Reference in new issue
Block a user