Skip to content

Commit

Permalink
🐛 无限波次小间隔 导致 波次界面卡死
Browse files Browse the repository at this point in the history
  • Loading branch information
way-zer committed Jan 17, 2025
1 parent 2c2ac35 commit 3d8a2d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mindustryX/features/ArcWaveSpawner.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ public static int calWinWave(){
if(group.end > 99999) continue;
maxwave = Math.max(maxwave, group.end);
}
if(maxwave > 5000) return 200;
if(maxwave < 2 && state.rules.waveSpacing > 30f) return (int)(1800000 / state.rules.waveSpacing);
return maxwave + 1;
if(maxwave == 0 && state.rules.waveSpacing > 10f * Time.toSeconds) maxwave = (int)(120 * Time.toMinutes / state.rules.waveSpacing);
return Math.min(maxwave + 1, 1000);
}

public static void arcDashCircling(float x, float y, float radius, float speed){
Expand Down

0 comments on commit 3d8a2d4

Please sign in to comment.