1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 15:40:26 +00:00

fixed Nil and Sol

This commit is contained in:
Zeno Rogue 2021-07-09 17:09:04 +02:00
parent f9a55d13c8
commit 7da49c9d2f

View File

@ -3966,6 +3966,8 @@ EX void gridline(const shiftmatrix& V, const hyperpoint h1, const hyperpoint h2,
int hrmap::wall_offset(cell *c) { int hrmap::wall_offset(cell *c) {
int id = currentmap->full_shvid(c); int id = currentmap->full_shvid(c);
if(WDIM == 3 && !hybri && !reg3::in()) return 0;
if(isize(cgi.walloffsets) <= id) cgi.walloffsets.resize(id+1, {-1, nullptr}); if(isize(cgi.walloffsets) <= id) cgi.walloffsets.resize(id+1, {-1, nullptr});
auto &wop = cgi.walloffsets[id]; auto &wop = cgi.walloffsets[id];
int &wo = wop.first; int &wo = wop.first;