[botlib/be_aas_def.h] Change array size from MAX_PATH to MAX_QPATH

The array is part of a structure and should have a fixed size that does
not depend on inclusion order.
This commit is contained in:
Thomas Köppe 2017-10-05 03:41:41 +01:00 committed by Zack Middleton
parent d824cfa5a2
commit 39b0702550
1 changed files with 2 additions and 6 deletions

View File

@ -39,10 +39,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define DF_AASENTCLIENT(x) (x - aasworld.entities - 1) #define DF_AASENTCLIENT(x) (x - aasworld.entities - 1)
#define DF_CLIENTAASENT(x) (&aasworld.entities[x + 1]) #define DF_CLIENTAASENT(x) (&aasworld.entities[x + 1])
#ifndef MAX_PATH
#define MAX_PATH MAX_QPATH
#endif
//structure to link entities to areas and areas to entities //structure to link entities to areas and areas to entities
typedef struct aas_link_s typedef struct aas_link_s
{ {
@ -187,8 +183,8 @@ typedef struct aas_s
float time; float time;
int numframes; int numframes;
//name of the aas file //name of the aas file
char filename[MAX_PATH]; char filename[MAX_QPATH];
char mapname[MAX_PATH]; char mapname[MAX_QPATH];
//bounding boxes //bounding boxes
int numbboxes; int numbboxes;
aas_bbox_t *bboxes; aas_bbox_t *bboxes;