Skip to content

Commit 7960f0c

Browse files
committed
-
1 parent 3b4238d commit 7960f0c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

SourceCode/MapMod.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ private static void HUD_Map_Ctor(On.HUD.Map.orig_ctor orig, Map map, HUD.HUD hud
436436
}
437437

438438
private static void HUD_Map_Draw(On.HUD.Map.orig_Draw orig, Map map, float time_stacker) {
439+
// there is a bug where Shader.SetGlobalVector("_mapPan", ...) fails to be delivered(?)
440+
// to the GPU; from what I tested it is still updated but "resets" at some point after
441+
// this function; maybe due to an exception later on that is not logged;
442+
// when it happens then the map_texture is not panned anymore during sleep or death
443+
// screens; it seems that it has to do with the mod SplitScreen Co-op; I could not
444+
// reproduce the bug when it is disabled;
439445
if (map.slatedForDeletion || map.Get_Attached_Fields() is not AttachedFields attached_fields) {
440446
orig(map, time_stacker);
441447
return;

0 commit comments

Comments
 (0)