mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
i hate u max
This commit is contained in:
@@ -247,6 +247,13 @@ void AFortGameModeAthena::OverrideSupplyDrop(AFortGameStateAthena* GameState, UC
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
auto& SupplyDropInfoList = MapInfo->Get<TArray<UFortSupplyDropInfo*>>(SupplyDropInfoListOffset);
|
auto& SupplyDropInfoList = MapInfo->Get<TArray<UFortSupplyDropInfo*>>(SupplyDropInfoListOffset);
|
||||||
|
|
||||||
|
if (SupplyDropInfoList.Num() == 0)
|
||||||
|
{
|
||||||
|
LOG_WARN(LogGame, "No SupplyDropInfoList!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto FirstSupplyDropInfo = SupplyDropInfoList.at(0);
|
auto FirstSupplyDropInfo = SupplyDropInfoList.at(0);
|
||||||
|
|
||||||
if (!FirstSupplyDropInfo)
|
if (!FirstSupplyDropInfo)
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ FORCEINLINE static ValueType PickWeightedElement(const std::map<KeyType, ValueTy
|
|||||||
}
|
}
|
||||||
|
|
||||||
return acc + Weight;
|
return acc + Weight;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
float RandomNumber = // UKismetMathLibrary::RandomFloatInRange(0, TotalWeight);
|
float RandomNumber = // UKismetMathLibrary::RandomFloatInRange(0, TotalWeight);
|
||||||
|
|||||||
Reference in New Issue
Block a user