Remove unsupported door info in AI navigation.

Fix keyvalue length being too small.
This commit is contained in:
Giegue
2023-04-03 12:51:01 -03:00
parent 62c17b14e4
commit fb92c2369f
2 changed files with 5 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
typedef struct typedef struct
{ {
char key[33]; char key[33];
char value[33]; char value[481];
} pKVD; } pKVD;
#define MAX_KEYVALUES 32 #define MAX_KEYVALUES 32

View File

@@ -232,7 +232,9 @@ int CGraph :: HandleLinkEnt ( int iNode, entvars_t *pevLinkEnt, int afCapMask, N
// func_door // func_door
if ( FClassnameIs( pevLinkEnt, "func_door" ) || FClassnameIs( pevLinkEnt, "func_door_rotating" ) ) if ( FClassnameIs( pevLinkEnt, "func_door" ) || FClassnameIs( pevLinkEnt, "func_door_rotating" ) )
{// ent is a door. {// 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 ) ); pDoor = ( CMBaseEntity::Instance( pevLinkEnt ) );
if ( ( pevLinkEnt->spawnflags & SF_DOOR_USE_ONLY ) ) if ( ( pevLinkEnt->spawnflags & SF_DOOR_USE_ONLY ) )
@@ -269,6 +271,7 @@ int CGraph :: HandleLinkEnt ( int iNode, entvars_t *pevLinkEnt, int afCapMask, N
return FALSE; return FALSE;
} }
*/
} }
// func_breakable // func_breakable
else if ( FClassnameIs( pevLinkEnt, "func_breakable" ) && queryType == NODEGRAPH_STATIC ) else if ( FClassnameIs( pevLinkEnt, "func_breakable" ) && queryType == NODEGRAPH_STATIC )