mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-03 18:22:49 +00:00
shvid now calls require_shapes()
This commit is contained in:
parent
c661290930
commit
dae0aacbb7
@ -846,6 +846,7 @@ EX namespace gp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void build_plainshape(int& id, gp::local_info& li, cell *c0, int siid, int sidir) {
|
void build_plainshape(int& id, gp::local_info& li, cell *c0, int siid, int sidir) {
|
||||||
|
cgi.require_shapes();
|
||||||
id = cgi.gpdata->nextid++;
|
id = cgi.gpdata->nextid++;
|
||||||
|
|
||||||
bool master = !(li.relative.first||li.relative.second);
|
bool master = !(li.relative.first||li.relative.second);
|
||||||
@ -972,6 +973,7 @@ int hrmap_standard::shvid(cell *c) {
|
|||||||
cgi.tessf = edge_of_triangle_with_angles(0, M_PI/t, M_PI/t);
|
cgi.tessf = edge_of_triangle_with_angles(0, M_PI/t, M_PI/t);
|
||||||
cgi.crossf = cgi.tessf;
|
cgi.crossf = cgi.tessf;
|
||||||
|
|
||||||
|
cgi.require_shapes();
|
||||||
println(hlog, "generating floorshapes for ", t);
|
println(hlog, "generating floorshapes for ", t);
|
||||||
cgi.generate_floorshapes_for(t, &model, 0, 0);
|
cgi.generate_floorshapes_for(t, &model, 0, 0);
|
||||||
cgi.finishshape();
|
cgi.finishshape();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user