This commit is contained in:
aozhiwei 2023-05-25 16:27:50 +08:00
parent 8787b4138e
commit 988a130204

View File

@ -3690,7 +3690,22 @@ void Room::CreateWorldObjects()
break; break;
case 2: case 2:
{ {
const mt::Hero* hero_meta = mt::Hero::GetById(std::get<1>(tuple));
if (hero_meta) {
Position hero_pos;
hero_pos.FromGlmVec3(objects[i]->pos);
int team_id = 666;
Creature* master = nullptr;
glm::vec3 dir = GlmHelper::UP;
Hero* hero = CreateHero(master,
hero_meta,
hero_pos.ToGlmVec3(),
dir,
team_id);
}
} }
break; break;
default: default: