Visual studio compile fixes.
This commit is contained in:
parent
e638624828
commit
b31b9334c3
Binary file not shown.
Binary file not shown.
@ -176,6 +176,10 @@
|
||||
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
|
||||
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\Source\ChunkyTriMesh.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\Source\demo.cpp"
|
||||
>
|
||||
@ -246,6 +250,10 @@
|
||||
Filter="h;hpp;hxx;hm;inl;inc;xsd"
|
||||
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
|
||||
>
|
||||
<File
|
||||
RelativePath="..\..\Include\ChunkyTriMesh.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\..\Detour\Include\DetourDebugDraw.h"
|
||||
>
|
||||
|
@ -71,14 +71,7 @@ static void calcExtends(BoundsItem* items, int nitems, int imin, int imax,
|
||||
|
||||
inline int longestAxis(float x, float y)
|
||||
{
|
||||
int axis = 0;
|
||||
unsigned short maxVal = x;
|
||||
if (y > maxVal)
|
||||
{
|
||||
axis = 1;
|
||||
maxVal = y;
|
||||
}
|
||||
return axis;
|
||||
return y > x ? 1 : 0;
|
||||
}
|
||||
|
||||
static void subdivide(BoundsItem* items, int nitems, int imin, int imax, int trisPerChunk,
|
||||
|
@ -1556,7 +1556,7 @@ int main(int argc, char *argv[])
|
||||
if ((int)tileSize > 0)
|
||||
{
|
||||
cfg.borderSize = cfg.walkableRadius*2 + 2;
|
||||
cfg.tileSize = tileSize;
|
||||
cfg.tileSize = (int)tileSize;
|
||||
|
||||
delete g_tileSet;
|
||||
g_tileSet = new TileSet;
|
||||
|
Loading…
x
Reference in New Issue
Block a user