Skip to content

Commit

Permalink
xrGame: rename collision with linux define function name
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleivg committed Nov 8, 2018
1 parent fc630bb commit 7cc7602
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xrGame/ik/limb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ int Limb::InLimits(const float x[7]) const
return 1;
}

float roundup(float x)
float round_up(float x)
{
if (x < 0)
x += 2 * M_PI;
Expand All @@ -914,7 +914,7 @@ void dump_file(char* file, int euler_type, float min[], float max[], Matrix c, M
FILE* fp = fopen(file, "w");

fprintf(fp, "%d\n", euler_type);
fprintf(fp, "%f %f %f \n", roundup(min[2]), roundup(min[1]), roundup(min[0]));
fprintf(fp, "%f %f %f \n", round_up(min[2]), round_up(min[1]), round_up(min[0]));
fprintf(fp, "%f %f %f \n", max[2], max[1], max[0]);
for (int i = 0; i < 4; i++)
fprintf(fp, "%f %f %f %f\n", c[i][0], c[i][1], c[i][2], c[i][3]);
Expand Down

0 comments on commit 7cc7602

Please sign in to comment.