This commit is contained in:
aozhiwei 2022-09-13 21:11:19 +08:00
parent 9654c35e61
commit 83a971edc8
2 changed files with 2 additions and 2 deletions

View File

@ -2156,7 +2156,7 @@ void Creature::SummonObstacle(Buff* buff, int id, const a8::Vec2& target_pos)
if (!GetAttackDir().IsZero()) {
pos = target_pos + GetAttackDir() * 100;
rotate = GetAttackDir().CalcAngleEx(a8::Vec2::UP);
if (GetAttackDir().x > 0.00001f) {
if (GetAttackDir().x < 0.00001f) {
rotate = -rotate;
}
p_rotate = &rotate;

View File

@ -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);
}
}