1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-30 15:39:54 +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; cell *c1 = hybrid::get_where(c).first;
wo = isize(cgi.shWall3D); wo = isize(cgi.shWall3D);
int won = wo + c->type; int won = wo + c->type;
cgi.wallstart.pop_back();
cgi.reserve_wall3d(won); cgi.reserve_wall3d(won);
if(prod) for(int i=0; i<c1->type; i++) { 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.make_wall(won-2+a, l);
} }
cgi.wallstart.push_back(isize(cgi.raywall));
cgi.compute_cornerbonus(); cgi.compute_cornerbonus();
cgi.extra_vertices(); cgi.extra_vertices();
} }