From 156dca1e834f8f479b0805680c68b5a8b01f66e4 Mon Sep 17 00:00:00 2001 From: mid-kid Date: Mon, 17 Dec 2018 16:34:20 +0100 Subject: [PATCH] day10p2 --- day10p1/main.c | 3 ++- day10p2 | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 120000 day10p2 diff --git a/day10p1/main.c b/day10p1/main.c index cafc522..b7089f2 100644 --- a/day10p1/main.c +++ b/day10p1/main.c @@ -137,14 +137,15 @@ int main() struct rect frame; + unsigned frame_id = 0; while (1) { frame = get_frame(lights, lights_len); if (frame.h <= REASONABLE_HEIGHT) break; advance_frame(lights, lights_len); + frame_id++; } GString *fname = g_string_new(NULL); - unsigned frame_id = 0; while (check_limit(frame, lights, lights_len) == 0) { g_string_printf(fname, "out/frame%03d.pbm", frame_id++); if (make_bitmap(fname->str, frame, lights, lights_len)) break; diff --git a/day10p2 b/day10p2 new file mode 120000 index 0000000..b0bda92 --- /dev/null +++ b/day10p2 @@ -0,0 +1 @@ +day10p1 \ No newline at end of file