1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

correct cgi.wallstart in hybrid

This commit is contained in:
Zeno Rogue 2019-10-28 17:20:28 +01:00
parent f3035bb1f5
commit 79cdbf7a53

View File

@ -1081,6 +1081,7 @@ EX namespace hybrid {
cell *c1 = hybrid::get_where(c).first;
wo = isize(cgi.shWall3D);
int won = wo + c->type;
cgi.wallstart.pop_back();
cgi.reserve_wall3d(won);
if(prod) for(int i=0; i<c1->type; i++) {
@ -1120,6 +1121,7 @@ EX namespace hybrid {
cgi.make_wall(won-2+a, l);
}
cgi.wallstart.push_back(isize(cgi.raywall));
cgi.compute_cornerbonus();
cgi.extra_vertices();
}