1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-06-26 15:12:48 +00:00

fixed a crash in floor_textures_here, due to floorshapes not being actually generated

This commit is contained in:
Zeno Rogue 2025-05-06 10:40:34 +02:00
parent a90143e8d6
commit 05f0c3b302

View File

@ -1281,6 +1281,10 @@ const int FLOORTEXTURESIZE = 4096;
void geometry_information::make_floor_textures_here() { void geometry_information::make_floor_textures_here() {
require_shapes(); require_shapes();
auto m = euc::new_map();
dynamicval<hrmap*> dm(currentmap, m);
cgi.generate_floorshapes_for(0, m->gamestart());
cgi.finishshape(); cgi.extra_vertices();
dynamicval<videopar> vi(vid, vid); dynamicval<videopar> vi(vid, vid);
vid.xres = FLOORTEXTURESIZE; vid.xres = FLOORTEXTURESIZE;