| 610 | }; |
| 611 | |
| 612 | static void spectate_addToHistory(color_ostream &out, int32_t unit_id) { |
| 613 | DEBUG(control,out).print("entering spectate_addToHistory; unit_id={}\n", unit_id); |
| 614 | if (!df::unit::find(unit_id)) { |
| 615 | WARN(control,out).print("unit with id {} not found; not adding to history\n", unit_id); |
| 616 | return; |
| 617 | } |
| 618 | unit_history.add_to_history(out, unit_id); |
| 619 | } |
| 620 | |
| 621 | DFHACK_PLUGIN_LUA_FUNCTIONS { |
| 622 | DFHACK_LUA_FUNCTION(spectate_setSetting), |
nothing calls this directly
no test coverage detected