[ioquake3] 21/33: [botlib/be_aas_def.h] Change array size from MAX_PATH to MAX_QPATH
Simon McVittie
smcv at debian.org
Mon Oct 30 14:00:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch debian/master
in repository ioquake3.
commit 39b07025509f6901fb53c91603217a57a4345091
Author: Thomas Köppe <tkoeppe at google.com>
Date: Thu Oct 5 03:41:41 2017 +0100
[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.
---
code/botlib/be_aas_def.h | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/code/botlib/be_aas_def.h b/code/botlib/be_aas_def.h
index 4e177cf..dee60f0 100644
--- a/code/botlib/be_aas_def.h
+++ b/code/botlib/be_aas_def.h
@@ -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_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
typedef struct aas_link_s
{
@@ -187,8 +183,8 @@ typedef struct aas_s
float time;
int numframes;
//name of the aas file
- char filename[MAX_PATH];
- char mapname[MAX_PATH];
+ char filename[MAX_QPATH];
+ char mapname[MAX_QPATH];
//bounding boxes
int numbboxes;
aas_bbox_t *bboxes;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/ioquake3.git
More information about the Pkg-games-commits
mailing list