Skip to content

[HLDMS] Fix all map entities being spawned twice#1839

Open
YourSourceBoiii wants to merge 1 commit intoValveSoftware:masterfrom
YourSourceBoiii:doubleentities
Open

[HLDMS] Fix all map entities being spawned twice#1839
YourSourceBoiii wants to merge 1 commit intoValveSoftware:masterfrom
YourSourceBoiii:doubleentities

Conversation

@YourSourceBoiii
Copy link

ISSUE: For years, Half Life Deathmatch Source has had this bug where all entities in a .bsp file are spawned twice. E.g. 1 prop_physics entity in hammer will end up becoming 2 prop_physics in the exact same spot in game.

This is LITERALLY game breaking. Any map that is more than a static battlefield is broken. Even stock maps have dysfunctional doors, elevators, etc. because having 2 spawn in the same place breaks them.

FIX: The issue is that CServerGameDLL::LevelInit_ParseAllEntities in hl1mp_gameinterface.cpp calls MapEntity_ParseAllEntities() when it already gets called in CServerGameDLL::LevelInit (non mod-specific part of the SDK). It can be fixed by placing the call for LevelInit_ParseAllEntities() behind an #ifndef HL1MP_DLL statement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant