1
This commit is contained in:
parent
694c06b0ed
commit
70c9a22175
@ -606,11 +606,7 @@ void Buff::ProcTurnOver()
|
||||
glm::vec3 dir = old_pos.CalcDir(owner->GetPos());
|
||||
GlmHelper::Normalize(dir);
|
||||
for (int i = 5; i < moved_distance; i += 5) {
|
||||
// 999
|
||||
#if 1
|
||||
#else
|
||||
owner->SetPos(old_pos + dir * i);
|
||||
#endif
|
||||
owner->GetMutablePos().FromGlmVec3(old_pos.ToGlmVec3() + dir * (float)i);
|
||||
std::list<Creature*> hit_objects;
|
||||
for (auto& target : target_list) {
|
||||
if (owner->TestCollision(owner->room, target)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user