mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix some issues found by cppcheck.
This commit is contained in:
parent
72407a9cfb
commit
f851c4aa33
163 changed files with 776 additions and 767 deletions
|
|
@ -103,7 +103,7 @@ class GodotBody2D : public GodotCollisionObject2D {
|
|||
bool can_sleep = true;
|
||||
bool first_time_kinematic = false;
|
||||
void _mass_properties_changed();
|
||||
virtual void _shapes_changed();
|
||||
virtual void _shapes_changed() override;
|
||||
Transform2D new_transform;
|
||||
|
||||
List<Pair<GodotConstraint2D *, int>> constraint_list;
|
||||
|
|
@ -302,7 +302,7 @@ public:
|
|||
_FORCE_INLINE_ void set_continuous_collision_detection_mode(PhysicsServer2D::CCDMode p_mode) { continuous_cd_mode = p_mode; }
|
||||
_FORCE_INLINE_ PhysicsServer2D::CCDMode get_continuous_collision_detection_mode() const { return continuous_cd_mode; }
|
||||
|
||||
void set_space(GodotSpace2D *p_space);
|
||||
void set_space(GodotSpace2D *p_space) override;
|
||||
|
||||
void update_mass_properties();
|
||||
void reset_mass_properties();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue