Even more BSP reader fixes.

Also fix project file not including all files.
This commit is contained in:
Giegue
2023-04-01 23:57:11 -03:00
parent 28c18952f8
commit 62c17b14e4
3 changed files with 22 additions and 1 deletions

View File

@@ -433,6 +433,14 @@ void scan_monster_bsp(void)
// examine all keys
while (kv_pair != NULL)
{
// entities cannot be this big!
if (kvd_index >= MAX_KEYVALUES)
{
LOG_MESSAGE(PLID, "WARNING: can't process entity #%i - too many keyvalues", ent);
use_monstermod = false;
break;
}
if (strcmp(kv_pair->key, "classname") == 0)
{
// the entity we are trying to spawn could already exist within the game