@@ -165,9 +165,9 @@ Array BulletSpawner::_create_volley() const {
165
165
bool spacing_maxed = false ;
166
166
167
167
float volley_start = -arc_extent;
168
- if (spacing > 2 * M_PI / shot_count){
169
- spacing = 2 * M_PI / shot_count;
170
- volley_start = -M_PI + spacing / 2 ;
168
+ if (spacing > 2 * Math_PI / shot_count){
169
+ spacing = 2 * Math_PI / shot_count;
170
+ volley_start = -Math_PI + spacing / 2 ;
171
171
spacing_maxed = true ;
172
172
}
173
173
@@ -178,7 +178,7 @@ Array BulletSpawner::_create_volley() const {
178
178
}
179
179
shot_angle += volley_start;
180
180
Vector2 shot_normal = Vector2 (1 ,0 ).rotated (shot_angle);
181
- if (arc_width >= 2 * M_PI || Math::abs (shot_normal.angle ()) <= arc_extent + 0.001 ){
181
+ if (arc_width >= 2 * Math_PI || Math::abs (shot_normal.angle ()) <= arc_extent + 0.001 ){
182
182
Dictionary shot;
183
183
shot_normal = shot_normal.rotated (arc_rotation);
184
184
shot[" normal" ] = shot_normal;
@@ -494,7 +494,7 @@ void BulletSpawner::_draw_preview(const Color &p_border_col, const Color &p_shot
494
494
inner_points.set (i, inner_point);
495
495
outer_points.set (i, outer_point);
496
496
}
497
- if (arc_width < 2 * M_PI ){
497
+ if (arc_width < 2 * Math_PI ){
498
498
outer_points.insert (0 , inner_points[0 ]);
499
499
outer_points.push_back (inner_points[inner_points.size () - 1 ]);
500
500
draw_polyline (inner_points, p_border_col);
0 commit comments