Skip to content

Commit

Permalink
Fix bug with radiator cooling on push-pull engines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tetragramm committed Nov 4, 2024
1 parent 5dd4adf commit 32f7473
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PlaneBuilder/Hangar/hangar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion PlaneBuilder/plane_builder.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion PlaneBuilder/src/impl/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class Engine extends Part {
if (this.NeedCooling()) {
this.cooling_count = Math.max(1, this.cooling_count);
}
this.cooling_count = Math.min(this.etype_stats.stats.cooling, this.cooling_count);
this.cooling_count = Math.min(this.GetMaxCooling(), this.cooling_count);
this.CalculateStats();
}

Expand Down
2 changes: 1 addition & 1 deletion Test/Hangar/hangar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Test/plane_builder.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Test/src/impl/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export class Engine extends Part {
if (this.NeedCooling()) {
this.cooling_count = Math.max(1, this.cooling_count);
}
this.cooling_count = Math.min(this.etype_stats.stats.cooling, this.cooling_count);
this.cooling_count = Math.min(this.GetMaxCooling(), this.cooling_count);
this.CalculateStats();
}

Expand Down

0 comments on commit 32f7473

Please sign in to comment.