1
This commit is contained in:
parent
b2fd473db2
commit
a56ec3d945
@ -1925,16 +1925,9 @@ void Creature::SummonHero(Buff* buff,
|
|||||||
for (int i = 0; i < 4; ++i) {
|
for (int i = 0; i < 4; ++i) {
|
||||||
glm::vec3 born_dir = dir;
|
glm::vec3 born_dir = dir;
|
||||||
glm::vec3 born_offset(x, 0, y);
|
glm::vec3 born_offset(x, 0, y);
|
||||||
// 999
|
GlmHelper::RotateY(born_offset, i * 0.5);
|
||||||
#if 0
|
born_pos = GetPos();
|
||||||
born_offset.Rotate(born_dir.CalcAngle(a8::Vec2::UP));
|
born_pos.AddGlmVec3(born_offset);
|
||||||
born_offset.Rotate(i * 0.5);
|
|
||||||
#endif
|
|
||||||
// 999
|
|
||||||
#if 1
|
|
||||||
#else
|
|
||||||
born_pos = pos + born_offset;
|
|
||||||
#endif
|
|
||||||
can_create = TrySummonHero(hero_meta,
|
can_create = TrySummonHero(hero_meta,
|
||||||
dir,
|
dir,
|
||||||
born_pos,
|
born_pos,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user