mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 18:27:41 +00:00
Actually implement AssetNameMap in DNAMP1
This commit is contained in:
@@ -140,7 +140,7 @@ void CScriptPickupGenerator::AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId
|
||||
float r = stateMgr.GetActiveRandom()->Range(0.f, totalProb);
|
||||
float f2 = 0.f;
|
||||
size_t count = 0;
|
||||
for (const auto id : pickupTemplates) {
|
||||
for (const auto& id : pickupTemplates) {
|
||||
if (r >= f2 && r <= f2 + id.first)
|
||||
break;
|
||||
f2 += id.first;
|
||||
|
||||
Reference in New Issue
Block a user