From 0bcc5b13105a20e2518919a10bf4c0766f52f869 Mon Sep 17 00:00:00 2001 From: briaguya Date: Thu, 25 Aug 2022 17:27:37 -0400 Subject: [PATCH 1/3] no more blank spoilers --- .../randomizer/3drando/spoiler_log.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp index cc6f996f0..b5aaf1aeb 100644 --- a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp @@ -676,13 +676,13 @@ static void WriteAllLocations(int language) { std::string placedItemName; switch (language) { - case 0: - default: - location->GetPlacedItemName().english; - break; - case 2: - location->GetPlacedItemName().french; - break; + case 0: + default: + placedItemName = location->GetPlacedItemName().english; + break; + case 2: + placedItemName = location->GetPlacedItemName().french; + break; } // Eventually check for other things here like fake name From 866cb3166bff7b885d03d6da111b43ee12b9433a Mon Sep 17 00:00:00 2001 From: briaguya Date: Thu, 25 Aug 2022 17:28:46 -0400 Subject: [PATCH 2/3] formatting --- .../randomizer/3drando/spoiler_log.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp index b5aaf1aeb..597951f53 100644 --- a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp @@ -676,13 +676,13 @@ static void WriteAllLocations(int language) { std::string placedItemName; switch (language) { - case 0: - default: - placedItemName = location->GetPlacedItemName().english; - break; - case 2: - placedItemName = location->GetPlacedItemName().french; - break; + case 0: + default: + placedItemName = location->GetPlacedItemName().english; + break; + case 2: + placedItemName = location->GetPlacedItemName().french; + break; } // Eventually check for other things here like fake name From 0107699a6b307fbce3a81293fe7f6620cb5eb6c3 Mon Sep 17 00:00:00 2001 From: briaguya Date: Thu, 25 Aug 2022 17:29:09 -0400 Subject: [PATCH 3/3] more formatting --- soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp index 597951f53..48ed607d2 100644 --- a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp @@ -678,11 +678,11 @@ static void WriteAllLocations(int language) { switch (language) { case 0: default: - placedItemName = location->GetPlacedItemName().english; - break; + placedItemName = location->GetPlacedItemName().english; + break; case 2: - placedItemName = location->GetPlacedItemName().french; - break; + placedItemName = location->GetPlacedItemName().french; + break; } // Eventually check for other things here like fake name