You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Use range iterators for RBSet in most cases
This commit is contained in:
@@ -168,8 +168,8 @@ void GodotStep2D::step(GodotSpace2D *p_space, real_t p_delta) {
|
||||
const SelfList<GodotArea2D>::List &aml = p_space->get_moved_area_list();
|
||||
|
||||
while (aml.first()) {
|
||||
for (const RBSet<GodotConstraint2D *>::Element *E = aml.first()->self()->get_constraints().front(); E; E = E->next()) {
|
||||
GodotConstraint2D *constraint = E->get();
|
||||
for (GodotConstraint2D *E : aml.first()->self()->get_constraints()) {
|
||||
GodotConstraint2D *constraint = E;
|
||||
if (constraint->get_island_step() == _step) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user