Skip to content

Commit

Permalink
Newline in if
Browse files Browse the repository at this point in the history
  • Loading branch information
wvpm committed Feb 11, 2025
1 parent c38fa17 commit cd2ce0b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,12 @@ void ResourceGatheringOperation::pay_employees(
total_owner_income_cache = 0;
total_employee_income_cache = 0;
if (revenue <= fixed_point_t::_0() || total_worker_count_in_province <= 0) {
if (revenue < fixed_point_t::_0()) { Logger::error("Negative revenue for province ", location.get_identifier()); }
if (total_worker_count_in_province < 0) { Logger::error("Negative total worker count for province ", location.get_identifier()); }
if (revenue < fixed_point_t::_0()) {
Logger::error("Negative revenue for province ", location.get_identifier());
}
if (total_worker_count_in_province < 0) {
Logger::error("Negative total worker count for province ", location.get_identifier());
}
return;
}

Expand Down

0 comments on commit cd2ce0b

Please sign in to comment.