mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
add source-sdk-2013
This commit is contained in:
+4
-4
@@ -334,11 +334,11 @@ inline void DirectionToVector2D( NavDirType dir, Vector2D *v )
|
||||
{
|
||||
switch( dir )
|
||||
{
|
||||
default: Assert(0);
|
||||
case NORTH: v->x = 0.0f; v->y = -1.0f; break;
|
||||
case SOUTH: v->x = 0.0f; v->y = 1.0f; break;
|
||||
case EAST: v->x = 1.0f; v->y = 0.0f; break;
|
||||
case WEST: v->x = -1.0f; v->y = 0.0f; break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -348,11 +348,11 @@ inline void CornerToVector2D( NavCornerType dir, Vector2D *v )
|
||||
{
|
||||
switch( dir )
|
||||
{
|
||||
default: Assert(0);
|
||||
case NORTH_WEST: v->x = -1.0f; v->y = -1.0f; break;
|
||||
case NORTH_EAST: v->x = 1.0f; v->y = -1.0f; break;
|
||||
case SOUTH_EAST: v->x = 1.0f; v->y = 1.0f; break;
|
||||
case SOUTH_WEST: v->x = -1.0f; v->y = 1.0f; break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
v->NormalizeInPlace();
|
||||
@@ -365,8 +365,6 @@ inline void GetCornerTypesInDirection( NavDirType dir, NavCornerType *first, Nav
|
||||
{
|
||||
switch ( dir )
|
||||
{
|
||||
default:
|
||||
Assert(0);
|
||||
case NORTH:
|
||||
*first = NORTH_WEST;
|
||||
*second = NORTH_EAST;
|
||||
@@ -383,6 +381,8 @@ inline void GetCornerTypesInDirection( NavDirType dir, NavCornerType *first, Nav
|
||||
*first = NORTH_WEST;
|
||||
*second = SOUTH_WEST;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user