diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-09-28 15:37:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 15:37:02 +0200 |
commit | 257a6aa2ba5f966275ee3fc1898ba33d371df42c (patch) | |
tree | 5b36607d85d18944b605e992d7a7ed5f59d7c174 /src/core/hle/service/mii | |
parent | Merge pull request #11402 from FernandoS27/depth-bias-control (diff) | |
parent | service: mii: Fix reported bugs (diff) | |
download | yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.tar yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.tar.gz yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.tar.bz2 yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.tar.lz yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.tar.xz yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.tar.zst yuzu-257a6aa2ba5f966275ee3fc1898ba33d371df42c.zip |
Diffstat (limited to 'src/core/hle/service/mii')
-rw-r--r-- | src/core/hle/service/mii/mii_database_manager.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/mii/types/char_info.cpp | 2 | ||||
-rw-r--r-- | src/core/hle/service/mii/types/core_data.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/mii/mii_database_manager.cpp b/src/core/hle/service/mii/mii_database_manager.cpp index c39898594..0080b6705 100644 --- a/src/core/hle/service/mii/mii_database_manager.cpp +++ b/src/core/hle/service/mii/mii_database_manager.cpp @@ -168,7 +168,7 @@ Result DatabaseManager::FindIndex(s32& out_index, const Common::UUID& create_id, return ResultSuccess; } - for (std::size_t i = 0; i <= index; ++i) { + for (std::size_t i = 0; i < index; ++i) { if (database.Get(i).IsSpecial()) { continue; } diff --git a/src/core/hle/service/mii/types/char_info.cpp b/src/core/hle/service/mii/types/char_info.cpp index c82186c73..e90124af4 100644 --- a/src/core/hle/service/mii/types/char_info.cpp +++ b/src/core/hle/service/mii/types/char_info.cpp @@ -37,7 +37,7 @@ void CharInfo::SetFromStoreData(const StoreData& store_data) { eyebrow_aspect = store_data.GetEyebrowAspect(); eyebrow_rotate = store_data.GetEyebrowRotate(); eyebrow_x = store_data.GetEyebrowX(); - eyebrow_y = store_data.GetEyebrowY(); + eyebrow_y = store_data.GetEyebrowY() + 3; nose_type = store_data.GetNoseType(); nose_scale = store_data.GetNoseScale(); nose_y = store_data.GetNoseY(); diff --git a/src/core/hle/service/mii/types/core_data.cpp b/src/core/hle/service/mii/types/core_data.cpp index 1068031e3..970c748ca 100644 --- a/src/core/hle/service/mii/types/core_data.cpp +++ b/src/core/hle/service/mii/types/core_data.cpp @@ -113,7 +113,7 @@ void CoreData::BuildRandom(Age age, Gender gender, Race race) { .values[MiiUtil::GetRandomValue<std::size_t>(eyebrow_type_info.values_count)]); const auto eyebrow_rotate_1{race == Race::Asian ? 6 : 0}; - const auto eyebrow_y{race == Race::Asian ? 9 : 10}; + const auto eyebrow_y{race == Race::Asian ? 6 : 7}; const auto eyebrow_rotate_offset{32 - RawData::EyebrowRotateLookup[eyebrow_rotate_1] + 6}; const auto eyebrow_rotate{ 32 - RawData::EyebrowRotateLookup[static_cast<std::size_t>(data.eyebrow_type.Value())]}; |