Misc changes from ioq3

This commit is contained in:
Richard Allen 2012-03-13 22:52:39 +00:00
parent 724f8f4bf2
commit 6d38b978fe
3 changed files with 5 additions and 1 deletions

View File

@ -186,6 +186,8 @@
*
*****************************************************************************/
// JBravo: Here be dragons. ioquake3's ai_dmq3.c rev 2116 meight have something for us.
#include "g_local.h"
#include "../botlib/botlib.h"
#include "../botlib/be_aas.h"

View File

@ -50,6 +50,8 @@
*
*****************************************************************************/
// JBravo: here be dragons. ioquake3's ai_main.c rev 2116 meight have something for us
#include "g_local.h"
#include "../qcommon/q_shared.h"
#include "../botlib/botlib.h" //bot lib interface

View File

@ -578,7 +578,7 @@ void DeathmatchScoreboardMessage(gentity_t * ent)
);
j = strlen(entry);
if (stringlength + j > 1024)
if (stringlength + j >= sizeof(string))
break;
strcpy(string + stringlength, entry);
stringlength += j;