File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -126,11 +126,14 @@ class LocalVector {
126126 return occurrences;
127127 }
128128
129- void invert () {
129+ void reverse () {
130130 for (U i = 0 ; i < count / 2 ; i++) {
131131 SWAP (data[i], data[count - i - 1 ]);
132132 }
133133 }
134+ #ifndef DISABLE_DEPRECATED
135+ [[deprecated(" Use reverse() instead" )]] void invert () { reverse (); }
136+ #endif
134137
135138 _FORCE_INLINE_ void clear () { resize (0 ); }
136139 _FORCE_INLINE_ void reset () {
Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ class NavMeshQueries2D {
103103 }
104104
105105 void path_reverse () {
106- path_points.invert ();
107- path_meta_point_types.invert ();
108- path_meta_point_rids.invert ();
109- path_meta_point_owners.invert ();
106+ path_points.reverse ();
107+ path_meta_point_types.reverse ();
108+ path_meta_point_rids.reverse ();
109+ path_meta_point_owners.reverse ();
110110 }
111111 };
112112
Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ class NavMeshQueries3D {
104104 }
105105
106106 void path_reverse () {
107- path_points.invert ();
108- path_meta_point_types.invert ();
109- path_meta_point_rids.invert ();
110- path_meta_point_owners.invert ();
107+ path_points.reverse ();
108+ path_meta_point_types.reverse ();
109+ path_meta_point_rids.reverse ();
110+ path_meta_point_owners.reverse ();
111111 }
112112 };
113113
You can’t perform that action at this time.
0 commit comments