MCPcopy Create free account
hub / github.com/DFHack/dfhack / orders_recheck_current_command

Function orders_recheck_current_command

plugins/orders.cpp:1045–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045static command_result orders_recheck_current_command(color_ostream & out)
1046{
1047 if (game->main_interface.info.work_orders.conditions.open)
1048 {
1049 game->main_interface.info.work_orders.conditions.wq->status.bits.active = false;
1050 }
1051 else
1052 {
1053 out << COLOR_LIGHTRED << "Order conditions is not open" << std::endl;
1054 return CR_FAILURE;
1055 }
1056 return CR_OK;
1057}

Callers 1

orders_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected