mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: Fixed multiple errors in scenic AAA modes
This commit is contained in:
@@ -825,3 +825,11 @@ void Unit::setHasTaskAssigned(bool newHasTaskAssigned) {
|
||||
void Unit::triggerUpdate(unsigned char datumIndex) {
|
||||
updateTimeMap[datumIndex] = duration_cast<milliseconds>(system_clock::now().time_since_epoch()).count();
|
||||
}
|
||||
|
||||
unsigned int Unit::computeTotalAmmo()
|
||||
{
|
||||
unsigned int totalShells = 0;
|
||||
for (auto const& ammoItem : ammo)
|
||||
totalShells += ammoItem.quantity;
|
||||
return totalShells;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user