File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33using System ;
44using System . Collections ;
55using System . IO ;
6+ using System . Reflection ;
67using System . Threading . Tasks ;
78using HarmonyLib ;
89using ProgressRenderer . Source . Enum ;
@@ -237,9 +238,18 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
237238 Find . PlaySettings . showPollutionOverlay = false ;
238239 Find . PlaySettings . showTemperatureOverlay = false ;
239240 }
241+
240242#if VERSION_1_5
241243 Prefs . DotHighlightDisplayMode = DotHighlightDisplayMode . None ;
242244#endif
245+ //Turn off Camera+ stuff
246+ var skipCustomRendering = Type . GetType ( "CameraPlus.CameraPlusMain" )
247+ ? . GetField ( "skipCustomRendering" , BindingFlags . Public | BindingFlags . Static ) ;
248+ if ( skipCustomRendering != null )
249+ {
250+ skipCustomRendering . SetValue ( null , true ) ;
251+ }
252+
243253 //TODO: Hide fog of war (stretch)
244254
245255 #endregion
@@ -486,6 +496,12 @@ private IEnumerator DoRendering(bool forceRenderFullMap)
486496#if VERSION_1_5
487497 Prefs . DotHighlightDisplayMode = oldHighlight ;
488498#endif
499+ //Enable Camera+ if necessary
500+ if ( skipCustomRendering != null )
501+ {
502+ skipCustomRendering . SetValue ( null , false ) ;
503+ }
504+
489505 // Switch back to world view if needed
490506 if ( rememberedWorldRendered )
491507 {
You can’t perform that action at this time.
0 commit comments