diff options
author | Aaron Franke <arnfranke@yahoo.com> | 2018-10-03 13:40:37 -0400 |
---|---|---|
committer | Aaron Franke <arnfranke@yahoo.com> | 2018-10-06 16:12:36 -0400 |
commit | 37386f112bafa9c4e94c342f6d5f04392a5623f7 (patch) | |
tree | 23870a98dd815447693154dedcb054e88a20e694 /servers | |
parent | ffe94ef4e2dc28e69337f53f58d0fa60e23607a8 (diff) |
Remove redundant "== true" code
If it can be compared to a boolean, it can be evaluated as one in-place.
Diffstat (limited to 'servers')
-rw-r--r-- | servers/physics_2d/step_2d_sw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/step_2d_sw.cpp b/servers/physics_2d/step_2d_sw.cpp index 0fb7af0c94..e4e1b03623 100644 --- a/servers/physics_2d/step_2d_sw.cpp +++ b/servers/physics_2d/step_2d_sw.cpp @@ -222,7 +222,7 @@ void Step2DSW::step(Space2DSW *p_space, real_t p_delta, int p_iterations) { Constraint2DSW *prev_ci = NULL; while (ci) { - if (_setup_island(ci, p_delta) == true) { + if (_setup_island(ci, p_delta)) { //removed the root from the island graph because it is not to be processed |