aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/nav.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/server/nav.h')
-rw-r--r--mp/src/game/server/nav.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/mp/src/game/server/nav.h b/mp/src/game/server/nav.h
index 0319991a..a955c3a8 100644
--- a/mp/src/game/server/nav.h
+++ b/mp/src/game/server/nav.h
@@ -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,6 +365,8 @@ inline void GetCornerTypesInDirection( NavDirType dir, NavCornerType *first, Nav
{
switch ( dir )
{
+ default:
+ Assert(0);
case NORTH:
*first = NORTH_WEST;
*second = NORTH_EAST;
@@ -381,8 +383,6 @@ inline void GetCornerTypesInDirection( NavDirType dir, NavCornerType *first, Nav
*first = NORTH_WEST;
*second = SOUTH_WEST;
break;
- default:
- break;
}
}