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

6
src/dlls/.gitignore vendored
View File

@@ -1,5 +1,9 @@
Release/
Debug/
msgs/
opt.*/
debug.*/
*.o
*.so
*.so
*.suo
*.sdf

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

View File

@@ -177,6 +177,12 @@
<ClCompile Include="zombie.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="ripent.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="music.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="activity.h">
@@ -266,5 +272,8 @@
<ClInclude Include="weapons.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="ripent.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>