Skip to content

Commit

Permalink
Fix #4472: Force world spawn to be inserted at the front of the root …
Browse files Browse the repository at this point in the history
…node's child list

idTech4 requires the worldspawn to be entity 0
  • Loading branch information
codereader committed Jan 29, 2017
1 parent f91adbd commit b58dede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radiant/map/Map.cpp
Expand Up @@ -376,7 +376,7 @@ scene::INodePtr Map::createWorldspawn()
GlobalEntityClassManager().findOrInsert("worldspawn", true)));

// We want the world spawn entity to go for the pole position
GlobalSceneGraph().root()->addChildNode(worldspawn);
GlobalSceneGraph().root()->addChildNodeToFront(worldspawn);

return worldspawn;
}
Expand Down

0 comments on commit b58dede

Please sign in to comment.