From 05f0c3b302f10a49a175dc535332b9fedb956b40 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 6 May 2025 10:40:34 +0200 Subject: [PATCH] fixed a crash in floor_textures_here, due to floorshapes not being actually generated --- floorshapes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/floorshapes.cpp b/floorshapes.cpp index 8a3ce882..db1cbed1 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -1281,6 +1281,10 @@ const int FLOORTEXTURESIZE = 4096; void geometry_information::make_floor_textures_here() { require_shapes(); + auto m = euc::new_map(); + dynamicval dm(currentmap, m); + cgi.generate_floorshapes_for(0, m->gamestart()); + cgi.finishshape(); cgi.extra_vertices(); dynamicval vi(vid, vid); vid.xres = FLOORTEXTURESIZE;