1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 03:47:58 +00:00

shift-awareness in rogueviz

This commit is contained in:
Zeno Rogue
2020-07-29 23:34:00 +02:00
parent e99251e70c
commit 9d0a252d14
18 changed files with 109 additions and 105 deletions

View File

@@ -47,19 +47,19 @@ hyperpoint find_point(ld t) {
hyperpoint gcurvestart = err;
void xcurvepoint(hyperpoint h) {
curvepoint(cwtV * h);
curvepoint(h);
if(iserror(gcurvestart))
gcurvestart = h;
else if(sphere && intval(gcurvestart, h) > .1) {
queuecurve(graphcolor, 0, PPR::LINE);
curvepoint(cwtV * h);
queuecurve(cwtV, graphcolor, 0, PPR::LINE);
curvepoint(h);
gcurvestart = h;
}
}
void finish() {
if(!iserror(gcurvestart)) {
queuecurve(graphcolor, 0, PPR::LINE);
queuecurve(cwtV, graphcolor, 0, PPR::LINE);
gcurvestart = err;
}
}