Skip to content

Commit 7ea51b4

Browse files
authored
Merge pull request #4209 from pleroy/Message
Handle "resource exhausted" in the flight planner UI
2 parents b4b404a + ea25684 commit 7ea51b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ksp_plugin_adapter/flight_planner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ private string GetStatusMessage() {
818818
actual_final_time -
819819
plugin.FlightPlanGetInitialTime(vessel_guid)))
820820
: "";
821-
if (status_.is_aborted()) {
821+
if (status_.is_aborted() || status_.is_resource_exhausted()) {
822822
status_message = L10N.CacheFormat(
823823
"#Principia_FlightPlan_StatusMessage_MaxSteps",
824824
time_out_message);

ksp_plugin_adapter/interface.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public bool is_out_of_range() {
2929
return error == 11;
3030
}
3131

32+
public bool is_resource_exhausted() {
33+
return error == 8;
34+
}
35+
3236
public bool is_unavailable() {
3337
return error == 14;
3438
}

0 commit comments

Comments
 (0)