mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-25 01:14:19 +00:00
Simplify function
This commit is contained in:
@@ -160,25 +160,23 @@ void MxRegionTopBottom::FUN_100c5280(MxS32 p_left, MxS32 p_right)
|
|||||||
if (p_left > leftRight->m_left)
|
if (p_left > leftRight->m_left)
|
||||||
p_left = leftRight->m_left;
|
p_left = leftRight->m_left;
|
||||||
|
|
||||||
if (leftRight->m_left < p_right) {
|
while (leftRight->m_left < p_right) {
|
||||||
do {
|
if (p_right < leftRight->m_right)
|
||||||
if (p_right < leftRight->m_right)
|
p_right = leftRight->m_right;
|
||||||
p_right = leftRight->m_right;
|
|
||||||
|
|
||||||
// TODO: Currently inlined, shouldn't be
|
// TODO: Currently inlined, shouldn't be
|
||||||
b = a;
|
b = a;
|
||||||
b.Advance();
|
b.Advance();
|
||||||
|
|
||||||
if (a.HasMatch()) {
|
if (a.HasMatch()) {
|
||||||
a.Destroy();
|
a.Destroy();
|
||||||
a.Detach();
|
a.Detach();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!b.Current(leftRight))
|
if (!b.Current(leftRight))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
a = b;
|
a = b;
|
||||||
} while (leftRight->m_left < p_right);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (a.HasMatch()) {
|
if (a.HasMatch()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user