Remove unsupported door info in AI navigation.
Fix keyvalue length being too small.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
typedef struct
|
||||
{
|
||||
char key[33];
|
||||
char value[33];
|
||||
char value[481];
|
||||
} pKVD;
|
||||
|
||||
#define MAX_KEYVALUES 32
|
||||
|
||||
@@ -232,7 +232,9 @@ int CGraph :: HandleLinkEnt ( int iNode, entvars_t *pevLinkEnt, int afCapMask, N
|
||||
// func_door
|
||||
if ( FClassnameIs( pevLinkEnt, "func_door" ) || FClassnameIs( pevLinkEnt, "func_door_rotating" ) )
|
||||
{// ent is a door.
|
||||
|
||||
// Can't retrieve door info right now, assume it's a hard wall and don't let the monster go through
|
||||
return FALSE;
|
||||
/*
|
||||
pDoor = ( CMBaseEntity::Instance( pevLinkEnt ) );
|
||||
|
||||
if ( ( pevLinkEnt->spawnflags & SF_DOOR_USE_ONLY ) )
|
||||
@@ -269,6 +271,7 @@ int CGraph :: HandleLinkEnt ( int iNode, entvars_t *pevLinkEnt, int afCapMask, N
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
*/
|
||||
}
|
||||
// func_breakable
|
||||
else if ( FClassnameIs( pevLinkEnt, "func_breakable" ) && queryType == NODEGRAPH_STATIC )
|
||||
|
||||
Reference in New Issue
Block a user