update entities.spawn(...) semantics to the docs state

This commit is contained in:
MihailRis
2024-07-17 10:17:20 +03:00
parent 51a57d3d1f
commit 1b99a48849
9 changed files with 23 additions and 13 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ static void initialize_body(
entityid_t Entities::spawn(
EntityDef& def,
glm::vec3 position,
dynamic::Value args,
dynamic::Map_sptr args,
dynamic::Map_sptr saved,
entityid_t uid)
{
@@ -179,7 +179,7 @@ void Entities::loadEntity(const dynamic::Map_sptr& map) {
throw std::runtime_error("could not read entity - invalid UID");
}
auto& def = level->content->entities.require(defname);
spawn(def, {}, dynamic::NONE, map, uid);
spawn(def, {}, nullptr, map, uid);
}
void Entities::loadEntity(const dynamic::Map_sptr& map, Entity entity) {