diff options
author | epoch <epoch@thebackupbox.net> | 2020-04-22 06:24:15 -0500 |
---|---|---|
committer | epoch <epoch@thebackupbox.net> | 2020-04-22 06:24:15 -0500 |
commit | 8db865190ea515b98d487f954ff0e347dcd8e3df (patch) | |
tree | 4148b87586082c961155d1d4bdd0d2c8bdc6241d /src | |
parent | b197cf7a4164471a5af97fffd742c3d825111cca (diff) | |
download | hackvr-8db865190ea515b98d487f954ff0e347dcd8e3df.tar.gz hackvr-8db865190ea515b98d487f954ff0e347dcd8e3df.zip |
forgot to put the code for applying rotations to globbed groups
Diffstat (limited to 'src')
-rw-r--r-- | src/hackvr.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hackvr.c b/src/hackvr.c index 7779a3c..87d4194 100644 --- 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; } } } |