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:
parent
34d71ab0ca
commit
293c44ba62
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue