Skip to content

Commit

Permalink
Split too long line
Browse files Browse the repository at this point in the history
  • Loading branch information
Birkow committed Sep 28, 2024
1 parent eef2928 commit 7b4fa31
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugins/autobutcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,14 @@ static int autobutcher_getInfoForNestboxes(lua_State* L) {
w = watched_races[raceId];
WatchedRace* tally = checkRaceStocksTotal(*out, raceId);
Lua::SetField(L, w->isWatched, ctable, "watched");
int mac = getMax(w->fk - tally->fk_units.size(), 0) + getMax(w->mk - tally->mk_units.size(), 0) + getMax(w->fa - tally->fa_units.size(), 0) + getMax(w->ma - tally->ma_units.size(), 0);
Lua::SetField(L, mac, ctable, "mac"); // missing animals count for race, diff between target for child/adult female/male and current amounts, ignore amounts over target
// missing animals count for race,
// diff between target for child/adult female/male and current amounts,
// ignore amounts over target
int mac = getMax(w->fk - tally->fk_units.size(), 0);
mac += getMax(w->mk - tally->mk_units.size(), 0);
mac += getMax(w->fa - tally->fa_units.size(), 0);
mac += getMax(w->ma - tally->ma_units.size(), 0);
Lua::SetField(L, mac, ctable, "mac");
delete tally;
}
}
Expand Down

0 comments on commit 7b4fa31

Please sign in to comment.