1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-26 01:50:36 +00:00

hybrid:: fixed queuecircleat

This commit is contained in:
Zeno Rogue 2019-09-09 18:55:23 +02:00
parent 5ad1be2962
commit 3e6e1cd6ed

View File

@ -6843,7 +6843,8 @@ EX void queuecircleat(cell *c, double rad, color_t col) {
if(!gmatrix.count(c)) return; if(!gmatrix.count(c)) return;
if(WDIM == 3) { if(WDIM == 3) {
dynamicval<color_t> p(poly_outline, col); dynamicval<color_t> p(poly_outline, col);
int ofs = wall_offset(c); // we must do hybrid::wall_offset in hybrid because the cached value is likely incorrect
int ofs = hybri ? hybrid::wall_offset(c) : wall_offset(c);
for(int i=0; i<c->type; i++) { for(int i=0; i<c->type; i++) {
queuepolyat(gmatrix[c], cgi.shWireframe3D[ofs + i], 0, PPR::SUPERLINE); queuepolyat(gmatrix[c], cgi.shWireframe3D[ofs + i], 0, PPR::SUPERLINE);
} }