Decompile 2 functions in Source/Contents/Effects/EffectTypes.cpp
Batch #11511 by Yommy: 0 byte-identical, 2 confirmed by peer review. - fn_20014 BuildLifetimes: logic confirmed by peer review (already on main) - fn_20056 EffectLifetime: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b157d75a79
commit
364bce9fe2
1 changed files with 5 additions and 3 deletions
|
|
@ -2471,12 +2471,14 @@ static std::unordered_map<int, int> BuildLifetimes() {
|
|||
namespace {
|
||||
// STATIC: 0x016FDAC0
|
||||
// GLOBAL: gl_24388
|
||||
const std::unordered_map<int, int> lifetimes = BuildLifetimes();
|
||||
std::unordered_map<int, int> lifetimes = BuildLifetimes();
|
||||
}
|
||||
|
||||
// OFFSET: 0x00C16440
|
||||
// FUNCTION: fn_20056
|
||||
int EffectLifetime(int id) {
|
||||
const auto found = lifetimes.find(id);
|
||||
return found == lifetimes.end() ? 0 : found->second;
|
||||
if (lifetimes.find(id) != lifetimes.end()) {
|
||||
return lifetimes[id];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue