diff options
Diffstat (limited to 'anim/src/map.zig')
| -rw-r--r-- | anim/src/map.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/anim/src/map.zig b/anim/src/map.zig index 255ea2d..c870d60 100644 --- a/anim/src/map.zig +++ b/anim/src/map.zig @@ -383,6 +383,7 @@ pub const Map = struct { const context = @import("context.zig"); context.zoomed = @splat(null); const t = placed.value(m.t); + context.thread_shows = std.math.clamp((t - diving.land) / 12, 0, 1); if (t >= diving.land) return; const fixed = @import("words.zig").fixed(f, placed, 0); const at = m.falling(f, placed, t); @@ -671,6 +672,10 @@ pub fn minimap(m: *const Map, f: *sk.Frame, at: anim.Placed) void { placed.scale = fixed.at.scale * theme.minimap.scale; const values = f.scratch.dupe(f32, at.values) catch return; placed.values = values; + // Its drawings outline the windows in their images' pixels: where the + // falling map has them (a dive's panels set off from there) is kept. + const falling_px = window_px; + defer window_px = falling_px; const n = theme.time.minimap_fade; var weights: [n]f32 = @splat(0); var made: usize = 0; |
