1
This commit is contained in:
parent
9654c35e61
commit
83a971edc8
@ -2156,7 +2156,7 @@ void Creature::SummonObstacle(Buff* buff, int id, const a8::Vec2& target_pos)
|
|||||||
if (!GetAttackDir().IsZero()) {
|
if (!GetAttackDir().IsZero()) {
|
||||||
pos = target_pos + GetAttackDir() * 100;
|
pos = target_pos + GetAttackDir() * 100;
|
||||||
rotate = GetAttackDir().CalcAngleEx(a8::Vec2::UP);
|
rotate = GetAttackDir().CalcAngleEx(a8::Vec2::UP);
|
||||||
if (GetAttackDir().x > 0.00001f) {
|
if (GetAttackDir().x < 0.00001f) {
|
||||||
rotate = -rotate;
|
rotate = -rotate;
|
||||||
}
|
}
|
||||||
p_rotate = &rotate;
|
p_rotate = &rotate;
|
||||||
|
@ -226,7 +226,7 @@ void Obstacle::FillMFObjectFull(Room* room, Human* hum, cs::MFObjectFull* full_d
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (std::abs(rotate_) > 0.000001) {
|
if (meta->i->thing_type() == kObstacleStrengthenWall) {
|
||||||
p->set_rotate(rotate_ * 180);
|
p->set_rotate(rotate_ * 180);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user