From 9a25da1989f36890915d8842c35bd5a8256b30f4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 27 Mar 2022 11:06:30 +0200 Subject: [PATCH] multi:: more modern centering --- graph.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/graph.cpp b/graph.cpp index e7d0ea1f..b56e9ae1 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5035,11 +5035,10 @@ EX void drawthemap() { if(multi::centerplayer != -1) cwtV = multi::whereis[multi::centerplayer]; else { - hyperpoint h; - for(int i=0; i<3; i++) h[i] = 0; + hyperpoint h = Hypc; for(int p=0; ppat; else { - hyperpoint h; - for(int i=0; i<3; i++) h[i] = 0; + hyperpoint h = Hypc; for(int p=0; ppat)); - for(int i=0; i<3; i++) h[i] += h1[i]; + h += h1; } h = mid(h, h); cwtV = shiftless(rgpushxto0(h));