From 1759b840d4fd98d12cb42cef2a6cf8581dd5c872 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 13 May 2019 13:40:03 +0200 Subject: [PATCH] 2D3D:: optimized wallshapes using orthogonal_move --- floorshapes.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/floorshapes.cpp b/floorshapes.cpp index 98da6e4f..944f5d10 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -488,7 +488,7 @@ void generate_floorshapes_for(int id, cell *c, int siid, int sidir) { using namespace hyperpoint_vec; hyperpoint left = binary::get_corner_horo_coordinates(c, t); hyperpoint right = binary::get_corner_horo_coordinates(c, t+1); - hpcpush(rgpushxto0(binary::get_horopoint(left * x + right * y)) * zpush(dfloor_table[k]) * C0); + hpcpush(orthogonal_move(binary::get_horopoint(left * x + right * y), dfloor_table[k])); }); else #endif @@ -497,10 +497,9 @@ void generate_floorshapes_for(int id, cell *c, int siid, int sidir) { int e = fsh.b[id].e-1; for(int t=0; t