Skip to content

Commit

Permalink
Revert "xrGame: fix some IK undefined reference"
Browse files Browse the repository at this point in the history
This reverts commit 30d85f1.
  • Loading branch information
eagleivg committed Nov 8, 2018
1 parent aa15fbd commit fc630bb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/xrGame/ik/aint.cpp → src/xrGame/ik/aint.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
MODIFICATIONS.
*/
#include "StdAfx.h"
#include "stdafx.h"

#include "aint.h"

Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/ik/eqn.cpp → src/xrGame/ik/eqn.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
MODIFICATIONS.
*/
#include "StdAfx.h"
#include "stdafx.h"
#include "eqn.h"

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
MODIFICATIONS.
*/
#include "StdAfx.h"
#include "stdafx.h"
#include "eulersolver.h"

typedef void (*euler_solver)(const Matrix G, float& t1, float& t2, float& t3, int family);
Expand Down
2 changes: 1 addition & 1 deletion src/xrGame/ik/jtlimits.cpp → src/xrGame/ik/jtlimits.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/

#include "StdAfx.h"
#include "stdafx.h"
#include "aint.h"
#include "jtlimits.h"

Expand Down
6 changes: 3 additions & 3 deletions src/xrGame/ik/limb.cpp → src/xrGame/ik/limb.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/

#include "StdAfx.h"
#include "stdafx.h"
#include "limb.h"

enum
Expand Down Expand Up @@ -903,7 +903,7 @@ int Limb::InLimits(const float x[7]) const
return 1;
}

float round_up(float x)
float roundup(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", round_up(min[2]), round_up(min[1]), round_up(min[0]));
fprintf(fp, "%f %f %f \n", roundup(min[2]), roundup(min[1]), roundup(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
12 changes: 6 additions & 6 deletions src/xrGame/xrGame.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2537,13 +2537,13 @@
<ClCompile Include="hud_item_object.cpp" />
<ClCompile Include="IKFoot.cpp" />
<ClCompile Include="IKLimbsController.cpp" />
<ClCompile Include="Ik\aint.cpp" />
<ClCompile Include="Ik\aint.cxx" />
<ClCompile Include="Ik\Dof7control.cpp" />
<ClCompile Include="Ik\eqn.cpp" />
<ClCompile Include="Ik\eulersolver.cpp" />
<ClCompile Include="Ik\eqn.cxx" />
<ClCompile Include="Ik\eulersolver.cxx" />
<ClCompile Include="Ik\IKLimb.cpp" />
<ClCompile Include="Ik\jtlimits.cpp" />
<ClCompile Include="Ik\limb.cpp" />
<ClCompile Include="Ik\jtlimits.cxx" />
<ClCompile Include="Ik\limb.cxx" />
<ClCompile Include="Ik\math3d.cpp" />
<ClCompile Include="Ik\mathTrig.cpp" />
<ClCompile Include="ik_anim_state.cpp" />
Expand Down Expand Up @@ -3715,4 +3715,4 @@
<Error Condition="!Exists('..\packages\sdl2.redist.2.0.5\build\native\sdl2.redist.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\sdl2.redist.2.0.5\build\native\sdl2.redist.targets'))" />
<Error Condition="!Exists('..\packages\sdl2.2.0.5\build\native\sdl2.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\sdl2.2.0.5\build\native\sdl2.targets'))" />
</Target>
</Project>
</Project>
12 changes: 6 additions & 6 deletions src/xrGame/xrGame.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -9664,16 +9664,16 @@
<ClCompile Include="Hit.cpp">
<Filter>Physics\Hit</Filter>
</ClCompile>
<ClCompile Include="Ik\aint.cpp">
<ClCompile Include="Ik\aint.cxx">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="Ik\Dof7control.cpp">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="Ik\eqn.cpp">
<ClCompile Include="Ik\eqn.cxx">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="Ik\eulersolver.cpp">
<ClCompile Include="Ik\eulersolver.cxx">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="ik_anim_state.cpp">
Expand Down Expand Up @@ -9703,10 +9703,10 @@
<ClCompile Include="IKLimbsController.cpp">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="Ik\jtlimits.cpp">
<ClCompile Include="Ik\jtlimits.cxx">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="Ik\limb.cpp">
<ClCompile Include="Ik\limb.cxx">
<Filter>Physics\IK</Filter>
</ClCompile>
<ClCompile Include="Ik\math3d.cpp">
Expand Down Expand Up @@ -9825,4 +9825,4 @@
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
</Project>
</Project>

0 comments on commit fc630bb

Please sign in to comment.