Fix scope issue

develop
Ryan Williams 2022-05-28 13:28:10 -07:00 committed by GitHub
parent e613085b0e
commit 249ed2888f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

@ -1388,7 +1388,7 @@ namespace
if (str[i] == 'r') // "&r" adds a blank line
{
word_wrap(out, parsed, line_length, false, true);
word_wrap(out, parsed, line_length, false/*, true*/);
out->push_back(" "); // DF adds a line with a space for some reason
parsed.clear();
}
@ -1402,7 +1402,7 @@ namespace
while (++i < str.length());
if (parsed.length())
word_wrap(out, parsed, line_length, false, true);
word_wrap(out, parsed, line_length, false/*, true*/);
return true;
}
@ -1597,11 +1597,11 @@ namespace
bool add_proper_report(df::unit *unit, bool is_sparring, int report_index)
{
if (is_sparring)
return addCombatReport(unit, unit_report_type::Sparring, report_index);
return Gui::addCombatReport(unit, unit_report_type::Sparring, report_index);
else if (unit->job.current_job != NULL && unit->job.current_job->job_type == job_type::Hunt)
return addCombatReport(unit, unit_report_type::Hunting, report_index);
return Gui::addCombatReport(unit, unit_report_type::Hunting, report_index);
else
return addCombatReport(unit, unit_report_type::Combat, report_index);
return Gui::addCombatReport(unit, unit_report_type::Combat, report_index);
}
}