| 1972 | } |
| 1973 | |
| 1974 | bool Gui::addCombatReportAuto(df::unit *unit, df::announcement_flags mode, df::report *report) |
| 1975 | { |
| 1976 | if (!unit || !report) |
| 1977 | return false; |
| 1978 | |
| 1979 | bool ok = false; |
| 1980 | |
| 1981 | if (mode.bits.UNIT_COMBAT_REPORT) |
| 1982 | ok |= add_proper_report(unit, unit->flags2.bits.sparring, report, true); |
| 1983 | |
| 1984 | if (mode.bits.UNIT_COMBAT_REPORT_ALL_ACTIVE) |
| 1985 | ok |= add_recent_reports(unit, report, true); |
| 1986 | |
| 1987 | return ok; |
| 1988 | } |
| 1989 | |
| 1990 | bool Gui::addCombatReportAuto(df::unit *unit, df::announcement_flags mode, int report_index) |
| 1991 | { |
nothing calls this directly
no test coverage detected