1
This commit is contained in:
parent
150c578a60
commit
7278e08e87
@ -518,12 +518,15 @@ void Room::ScatterDrop(const glm::vec3& center, int drop_id)
|
||||
glm::vec3 dir = GlmHelper::UP;
|
||||
GlmHelper::RotateY(dir, a8::RandAngle());
|
||||
const glm::vec3 pos = center;
|
||||
DropItemEx(center + dir * (5.0f + rand() % 50),
|
||||
pos,
|
||||
std::get<0>(item),
|
||||
std::get<1>(item),
|
||||
std::get<2>(item),
|
||||
true);
|
||||
const mt::Equip* equip_meta = mt::Equip::GetById(std::get<0>(item));
|
||||
if (equip_meta) {
|
||||
DropItemEx(center + dir * (5.0f + rand() % 50),
|
||||
pos,
|
||||
std::get<0>(item),
|
||||
std::get<1>(item),
|
||||
std::get<2>(item),
|
||||
true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user