fixed a bug which caused sea buoys to sometimes not appear

This commit is contained in:
Zeno Rogue 2018-08-04 22:25:46 +02:00
parent 6e1ba9e771
commit 47c69694bc
1 changed files with 1 additions and 0 deletions

View File

@ -4418,6 +4418,7 @@ void drawcell(cell *c, transmatrix V, int spinv, bool mirrored) {
if(c->land == laOceanWall && wmescher && wmspatial) {
const int layers = 2 << detaillevel;
dynamicval<const hpcshape*> ds(qfi.shape, &shCircleFloor);
dynamicval<transmatrix> dss(qfi.spin, Id);
for(int z=1; z<layers; z++) {
double zg = zgrad0(-geom3::lake_top, geom3::actual_wall_height(), z, layers);
draw_qfi(c, xyzscale(V, zg*(layers-z)/layers, zg),