summaryrefslogtreecommitdiff
path: root/src/math.c
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2020-04-02 08:16:46 +0000
committerepoch <epoch@hack.thebackupbox.net>2020-04-02 08:16:46 +0000
commit893df52f73ad082679ad2a5df42c1768e93ff791 (patch)
tree2563eac7954dabbfbf40e48993ca0be9e26d19b6 /src/math.c
parent9004c4a5ff7bfd0067fa616693d84b8afe69d9f4 (diff)
parent2870621fda77e7daffee13984618d213b83738a3 (diff)
downloadhackvr-893df52f73ad082679ad2a5df42c1768e93ff791.tar.gz
hackvr-893df52f73ad082679ad2a5df42c1768e93ff791.zip
merge
Diffstat (limited to 'src/math.c')
-rw-r--r--src/math.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/math.c b/src/math.c
index 318465d..2c3b0c0 100644
--- a/src/math.c
+++ b/src/math.c
@@ -12,14 +12,15 @@ c3_group_rot_t *get_group_relative(char *id) {//crashes in here somehwere...
c3_group_rot_t *gr;
struct entry *tmp;
if((tmp=ht_getnode(&global.ht_group,id))) {
- gr=tmp->target;
+ gr=tmp->target;//target is a void *
return gr;
}//if this didn't work, do fallback...
for(i=0;global.group_rot[i];i++) {
if(!strcmp(global.group_rot[i]->id,id)) {//should I use glob here and return an array?
if(gr != global.group_rot[i]) {
- fprintf(stderr,"# %s ? %s ? %s\n",tmp->original,gr->id,global.group_rot[i]->id);
- fprintf(stderr,"# %16x != %16x. wtf?\n",gr,global.group_rot[i]);
+ //fprintf(stderr,"# %s ? %s ? %s\n",tmp->original,gr->id,global.group_rot[i]->id);
+ //fprintf(stderr,"# %16x != %16x. wtf?\n",gr,global.group_rot[i]);
+ fprintf(stderr,"ht method != loop method\n");
}
return global.group_rot[i];
}