Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

fix(editor): MapTextures enforces the 2048 max size again (it sat inside a comment)

eyalgolan2cffdc3b8969
diff --git a/unity/Assets/Editor/MapTextures.cs b/unity/Assets/Editor/MapTextures.cs
index 4a792573f..3c8110e64 100644
--- a/unity/Assets/Editor/MapTextures.cs
+++ b/unity/Assets/Editor/MapTextures.cs
@@ -30,7 +30,8 @@ namespace Statecraft.Game.EditorTools
}
imp.sRGBTexture = false; imp.mipmapEnabled = true; imp.isReadable = false;
imp.wrapMode = TextureWrapMode.Clamp; imp.filterMode = FilterMode.Trilinear; // no mip seams across the pitched view
- imp.anisoLevel = path == MapTexturePaths.Bake ? 2 : 1; // the shading is seen at a grazing angle imp.maxTextureSize = 2048;
+ imp.anisoLevel = path == MapTexturePaths.Bake ? 2 : 1; // the shading is seen at a grazing angle
+ imp.maxTextureSize = 2048;
imp.textureCompression = singleChannel ? TextureImporterCompression.Uncompressed : TextureImporterCompression.Compressed;
imp.SaveAndReimport();
}