| 1775 | } |
| 1776 | |
| 1777 | static bool recent_report(df::unit *unit, df::unit_report_type slot) |
| 1778 | { |
| 1779 | return unit && !unit->reports.log[slot].empty() && |
| 1780 | *df::global::cur_year == unit->reports.last_year[slot] && |
| 1781 | (*df::global::cur_year_tick - unit->reports.last_year_tick[slot]) <= RECENT_REPORT_TICKS; |
| 1782 | } |
| 1783 | |
| 1784 | static bool recent_report_any(df::unit *unit) |
| 1785 | { |
no test coverage detected