Decompile fn_04816 (SpriteLayerRenderer::GetLayerSound)

Batch #12978 by cremane: 0 byte-identical, 1 confirmed by peer review.

- fn_04816 SpriteLayerRenderer::GetLayerSound: 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:
ragnarok-clanker 2026-11-06 03:52:37 +00:00
commit 293c44ba62

View file

@ -577,11 +577,11 @@ std::pair<bool, SpriteLayerResources> SpriteLayerRenderer::FindLayer(int layer)
// FUNCTION: fn_04816
std::pair<bool, std::string> SpriteLayerRenderer::GetLayerSound(int layer, CActRes* action, int sound) {
if (layer != 6) {
return {false, ""};
return std::make_pair(false, "");
}
if (sound == -1) {
return {false, ""};
return std::make_pair(false, "");
}
std::string name = action->Sound(sound);
@ -589,7 +589,7 @@ std::pair<bool, std::string> SpriteLayerRenderer::GetLayerSound(int layer, CActR
name.clear();
}
return {true, name};
return std::make_pair(true, name);
}
// OFFSET: 0x00641850