From 5e801af7a91598a89b40708dd2e0a653e9223372 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 4 Mar 2025 09:53:43 +0100 Subject: [PATCH] rogueviz::seuphorica::call compute_size --- rogueviz/seuphorica.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rogueviz/seuphorica.cpp b/rogueviz/seuphorica.cpp index 5fc0b6fc..6545ec2c 100644 --- a/rogueviz/seuphorica.cpp +++ b/rogueviz/seuphorica.cpp @@ -23,9 +23,7 @@ namespace seuphorica { void compute_score(); void draw_board() { - minx=15, miny=15, maxx=0, maxy=0; - for(auto& b: board) if(!just_placed.count(b.first)) minx = min(minx, b.first.x), maxx = max(maxx, b.first.x), miny = min(miny, b.first.y), maxy = max(maxy, b.first.y); - miny -= 6; minx -= 6; maxx += 7; maxy += 7; + compute_size(); compute_score(); }