-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: hackvr action: commit revision: path_from: revision_from: 8db865190ea515b98d487f954ff0e347dcd8e3df: path_to: revision_to:
commit 8db865190ea515b98d487f954ff0e347dcd8e3df Author: epoch <epoch@thebackupbox.net> Date: Wed Apr 22 06:24:15 2020 -0500 forgot to put the code for applying rotations to globbed groups diff --git a/src/hackvr.c b/src/hackvr.c
--- a/src/hackvr.c +++ b/src/hackvr.c @@ -524,6 +524,13 @@ int hackvr_handler(char *line) { for(m=global.ht_group.bucket[global.ht_group.keys[i]]->ll;m;m=m->next) { if(!glob_match(id,m->target)) { gr=m->target; + gr->r.x=(degrees){(a[2][0]=='+'?gr->r.x.d:0)+atoi(a[2]+(a[2][0]=='+'))}; + gr->r.y=(degrees){(a[3][0]=='+'?gr->r.y.d:0)+atoi(a[3]+(a[3][0]=='+'))}; + gr->r.z=(degrees){(a[4][0]=='+'?gr->r.z.d:0)+atoi(a[4]+(a[4][0]=='+'))}; + //now to sanitize them into 0 <= degrees < 360 + gr->r.x.d -= (-(gr->r.x.d < 0)+(gr->r.x.d / 360)) * 360; + gr->r.y.d -= (-(gr->r.y.d < 0)+(gr->r.y.d / 360)) * 360; + gr->r.z.d -= (-(gr->r.z.d < 0)+(gr->r.z.d / 360)) * 360; } } }
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 17:41:22 2024