1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-20 04:26:03 +08:00

Modified SDK for GCC 4.2

This commit is contained in:
Scott Ehlert
2008-09-15 02:50:57 -05:00
parent 86f3bc8a60
commit 7ff7f366d5
696 changed files with 23423 additions and 22634 deletions

View File

@ -1895,6 +1895,9 @@ bool CNavMesh::UpdateGeneration( float maxTime )
return false;
}
default:
break;
}
return false;
@ -2073,16 +2076,16 @@ bool CNavMesh::SampleStep( void )
Vector pos = *m_currentNode->GetPosition();
// snap to grid
int cx = SnapToGrid( pos.x );
int cy = SnapToGrid( pos.y );
int cx = (int)SnapToGrid( pos.x );
int cy = (int)SnapToGrid( pos.y );
// attempt to move to adjacent node
switch( dir )
{
case NORTH: cy -= GenerationStepSize; break;
case SOUTH: cy += GenerationStepSize; break;
case EAST: cx += GenerationStepSize; break;
case WEST: cx -= GenerationStepSize; break;
case NORTH: cy = (int)(cy - GenerationStepSize); break;
case SOUTH: cy = (int)(cy + GenerationStepSize); break;
case EAST: cx = (int)(cx + GenerationStepSize); break;
case WEST: cx = (int)(cx - GenerationStepSize); break;
}
pos.x = cx;