1
This commit is contained in:
parent
70422aea17
commit
a5158fedff
@ -448,6 +448,10 @@ void Bullet::Check(float distance)
|
|||||||
hit_objects_.insert(collider->owner->GetUniId());
|
hit_objects_.insert(collider->owner->GetUniId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if (obstacle->meta->i->thing_type() == kObstacleStrengthenWall) {
|
||||||
|
if (!strengthened_ && TestCollision(room, collider)) {
|
||||||
|
strengthened_ = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,6 +75,7 @@ private:
|
|||||||
bool is_curr_weapon = false;
|
bool is_curr_weapon = false;
|
||||||
std::set<int> hit_objects_;
|
std::set<int> hit_objects_;
|
||||||
long long create_frameno_ = 0;
|
long long create_frameno_ = 0;
|
||||||
|
bool strengthened_ = false;
|
||||||
|
|
||||||
friend class EntityFactory;
|
friend class EntityFactory;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user