Skip to content

Commit

Permalink
2nd try fixing 12 number bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LollosoSi committed May 4, 2020
1 parent 2e115a3 commit 10f3552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ShadowFace-tizen232/src/shadowface-tizen232.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ int
distance (int alpha, int beta)
{
int a = alpha - beta;
a = (a + 30) % 60 - 30;
if (a > 30) a -= 60;
if (a < -30) a += 60;
return abs(a);
}

Expand Down

0 comments on commit 10f3552

Please sign in to comment.