summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MatterArray.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2MatterArray.cpp
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2MatterArray.cpp')
-rw-r--r--src/T2DLL/T2MatterArray.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/T2DLL/T2MatterArray.cpp b/src/T2DLL/T2MatterArray.cpp
index 2dee1cc..42adf1b 100644
--- a/src/T2DLL/T2MatterArray.cpp
+++ b/src/T2DLL/T2MatterArray.cpp
@@ -6,12 +6,12 @@ T2MatterArray::T2MatterArray(unsigned int jobType, unsigned int validRange, unsi
mJobType = jobType;
mValidRange = validRange;
- for (unsigned int i = 0; i < 448; i++)
+ for (unsigned int i = 0; i < kGroupSize; i++)
mMatter[i].mMatterID = mStartID + i;
}
void T2MatterArray::SetValidRange(unsigned int validRange) {
- if (validRange <= 448)
+ if (validRange <= kGroupSize)
mValidRange = validRange;
}
@@ -24,8 +24,8 @@ T2Matter* T2MatterArray::FindUnusedMatter(unsigned int arg) {
if (arg > 0) {
unsigned int start = mValidRange;
unsigned int end = mValidRange + arg;
- if (end > 448)
- end = 448;
+ if (end > kGroupSize)
+ end = kGroupSize;
mValidRange = end;
for (unsigned int i = start; i < mValidRange; i++) {