1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-11 20:57:41 +00:00

refactored the vertical movement functions

This commit is contained in:
Zeno Rogue
2022-12-06 01:04:26 +01:00
parent adfab30c62
commit bf001926c2
12 changed files with 210 additions and 181 deletions

View File

@@ -3092,7 +3092,8 @@ EX namespace mapeditor {
hpcshape& sh(cgi.ushr[&ds]);
if(sh.s != sh.e) {
auto& last = queuepolyat(mmscale(V, GDIM == 3 ? 0 : geom3::lev_to_factor(ds.zlevel)), sh, ds.color ? ds.color : color, prio);
shiftmatrix V1 = GDIM == 3 ? V : orthogonal_move(V, ds.zlevel);
auto& last = queuepolyat(V1, sh, ds.color ? ds.color : color, prio);
if(GDIM == 3) {
last.tinf = &user_triangles_texture;
last.offset_texture = ds.texture_offset;