summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice <maurice.henke@protonmail.com>2021-04-18 22:37:59 +0200
committerMaurice <maurice.henke@protonmail.com>2021-04-18 22:37:59 +0200
commit709c8d1d852bb2f41a234d9aaaf571470b0fd736 (patch)
tree21ae82cacada5fc942296906df9f49446d98f1c2
parentea165cc53c85adac3c25f50ed10e122353c28287 (diff)
Updated var name for loaded number of checks
-rw-r--r--GameCube/include/seed.h6
-rw-r--r--GameCube/source/seed.cpp18
2 files changed, 12 insertions, 12 deletions
diff --git a/GameCube/include/seed.h b/GameCube/include/seed.h
index 212f732..f278b91 100644
--- a/GameCube/include/seed.h
+++ b/GameCube/include/seed.h
@@ -37,13 +37,13 @@ namespace mod::rando
uint32_t m_StageIDX = 0xFF; //< StageIDX from last Checkload
gci::data::dzxCheck* m_DZXChecks = nullptr; //< DZX replacement checks for current stage
- uint32_t m_numDZXChecks = 0; //< Number of currently loaded DZXCheck
+ uint32_t m_numLoadedDZXChecks = 0; //< Number of currently loaded DZXCheck
gci::data::RELCheck* m_RELChecks = nullptr; //< REL Modifications for current stage
- uint32_t m_numRELChecks = 0; //< Number of currently loaded RELCheck
+ uint32_t m_numLoadedRELChecks = 0; //< Number of currently loaded RELCheck
gci::data::shopCheck* m_ShopChecks = nullptr; //< Shop replacements for current stage
- uint32_t m_numSHOPChecks = 0; //< Number of currently loaded ShopChecks
+ uint32_t m_numLoadedSHOPChecks = 0; //< Number of currently loaded ShopChecks
// Member functions
public:
diff --git a/GameCube/source/seed.cpp b/GameCube/source/seed.cpp
index cd74675..b413912 100644
--- a/GameCube/source/seed.cpp
+++ b/GameCube/source/seed.cpp
@@ -83,9 +83,9 @@ namespace mod::rando
void Seed::ClearChecks()
{
- m_numDZXChecks = 0;
- m_numRELChecks = 0;
- m_numSHOPChecks = 0;
+ m_numLoadedDZXChecks = 0;
+ m_numLoadedRELChecks = 0;
+ m_numLoadedSHOPChecks = 0;
delete[] m_DZXChecks;
delete[] m_RELChecks;
@@ -257,12 +257,12 @@ namespace mod::rando
{
if ( allDZX[i].stageIDX == stageIDX )
{
- m_numDZXChecks++;
+ m_numLoadedDZXChecks++;
}
}
// Allocate memory the actual RELChecks
- m_DZXChecks = new dzxCheck[m_numDZXChecks];
+ m_DZXChecks = new dzxCheck[m_numLoadedDZXChecks];
// offset into m_DZXChecks
uint32_t j = 0;
@@ -303,12 +303,12 @@ namespace mod::rando
{
if ( allREL[i].stageIDX == stageIDX )
{
- m_numRELChecks++;
+ m_numLoadedRELChecks++;
}
}
// Allocate memory the actual RELChecks
- m_RELChecks = new RELCheck[m_numRELChecks];
+ m_RELChecks = new RELCheck[m_numLoadedRELChecks];
// offset into m_RELChecks
uint32_t j = 0;
@@ -349,12 +349,12 @@ namespace mod::rando
{
if ( allSHOP[i].stageIDX == stageIDX )
{
- m_numSHOPChecks++;
+ m_numLoadedSHOPChecks++;
}
}
// Allocate memory the actual RELChecks
- m_ShopChecks = new shopCheck[m_numSHOPChecks];
+ m_ShopChecks = new shopCheck[m_numLoadedSHOPChecks];
// offset into m_RELChecks
uint32_t j = 0;