Remove entity lump manipulation from OnLevelInit

Newer Source engine versions now use a dynamically allocated buffer for
the map entity lump, and some maps have over 16MB of entity data - far
larger than our 2MB limit.

There is no sane way we can currently handle this, so just remove the
functionality from the forward until a more comprehensive API can be
designed.

Fixes #1470
This commit is contained in:
Asher Baker
2021-07-17 20:52:51 +01:00
parent 54364d213d
commit 70c9a6528a
3 changed files with 5 additions and 29 deletions
+2 -2
View File
@@ -379,8 +379,8 @@ forward Action OnGetGameDescription(char gameDesc[64]);
* When the level is initialized
*
* @param mapName Name of the map
* @param mapEntities Entities of the map
* @return Plugin_Changed if mapEntities has been edited, else no change.
* @param mapEntities Unused, always empty
* @return Unused, return value is ignored
*/
forward Action OnLevelInit(const char[] mapName, char mapEntities[2097152]);