diff --git a/LEGO1/mxlist.h b/LEGO1/mxlist.h index a6ba6a0a..80fa0e00 100644 --- a/LEGO1/mxlist.h +++ b/LEGO1/mxlist.h @@ -92,7 +92,7 @@ class MxListCursor : public MxCore { void Detach(); void Destroy(); MxBool Next(T& p_obj); - MxBool Previous(T& p_obj); + MxBool Prev(T& p_obj); MxBool Current(T& p_obj); MxBool First(T& p_obj); MxBool Last(T& p_obj); @@ -237,7 +237,7 @@ inline MxBool MxListCursor::Next(T& p_obj) } template -inline MxBool MxListCursor::Previous(T& p_obj) +inline MxBool MxListCursor::Prev(T& p_obj) { if (!m_match) m_match = m_list->m_last; diff --git a/LEGO1/mxregioncursor.cpp b/LEGO1/mxregioncursor.cpp index 121be0f5..89c90403 100644 --- a/LEGO1/mxregioncursor.cpp +++ b/LEGO1/mxregioncursor.cpp @@ -95,14 +95,14 @@ MxRect32* MxRegionCursor::VTable0x30() MxRegionLeftRight* leftRight; MxRegionTopBottom* topBottom; - if (m_leftRightCursor && m_leftRightCursor->Previous(leftRight)) { + if (m_leftRightCursor && m_leftRightCursor->Prev(leftRight)) { m_topBottomCursor->Current(topBottom); UpdateRect(leftRight->GetLeft(), topBottom->GetTop(), leftRight->GetRight(), topBottom->GetBottom()); return m_rect; } - if (m_topBottomCursor->Previous(topBottom)) { + if (m_topBottomCursor->Prev(topBottom)) { FUN_100c46c0(*topBottom->m_leftRightList); m_leftRightCursor->Last(leftRight); @@ -158,7 +158,7 @@ MxRect32* MxRegionCursor::VTable0x2c(MxRect32& p_rect) { MxRegionLeftRight* leftRight; - if (m_leftRightCursor && m_leftRightCursor->Previous(leftRight)) { + if (m_leftRightCursor && m_leftRightCursor->Prev(leftRight)) { MxRegionTopBottom* topBottom; m_topBottomCursor->Current(topBottom); @@ -252,7 +252,7 @@ void MxRegionCursor::FUN_100c4a20(MxRect32& p_rect) void MxRegionCursor::FUN_100c4b50(MxRect32& p_rect) { MxRegionTopBottom* topBottom; - while (m_topBottomCursor->Previous(topBottom)) { + while (m_topBottomCursor->Prev(topBottom)) { if (topBottom->GetBottom() <= p_rect.GetTop()) { Reset(); return; @@ -262,7 +262,7 @@ void MxRegionCursor::FUN_100c4b50(MxRect32& p_rect) FUN_100c46c0(*topBottom->m_leftRightList); MxRegionLeftRight* leftRight; - while (m_leftRightCursor->Previous(leftRight)) { + while (m_leftRightCursor->Prev(leftRight)) { if (leftRight->GetRight() <= p_rect.GetLeft()) break;