1
This commit is contained in:
parent
8787b4138e
commit
988a130204
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user