summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegaMech <MegaMech@users.noreply.github.com>2024-03-12 06:59:44 -0600
committerLywx <kiritodev01@gmail.com>2024-03-12 11:57:30 -0600
commitebb8b34c9955714a1f1009ebe5c33324dc95845c (patch)
treee4b9ef76f1b3e5c2e72305d0f5d15eafcd445dea
parent8e566f8cde0f44cfeee46314119e7ef7fdfaf677 (diff)
Update DisplayListFactory.cpp
-rw-r--r--src/factories/DisplayListFactory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp
index ebaf3b0..389f8f6 100644
--- a/src/factories/DisplayListFactory.cpp
+++ b/src/factories/DisplayListFactory.cpp
@@ -367,8 +367,8 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint
case GBIVersion::f3d:
index = C0(16, 8);
- if(index < GBI(G_MV_L0)) {
- continue;
+ if(index == GBI(G_MV_L0) || index == GBI(G_MV_L1)) {
+ light = true;
}
break;
@@ -391,8 +391,8 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint
index = C0(0, 8);
offset = C0(8, 8) * 8;
- if(index != GBI(G_MV_LIGHT)) {
- continue;
+ if(index == GBI(G_MV_LIGHT)) {
+ light = true;
}
}
}