From c2efba6907fab934a04959b9bb644cf7141cc955 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 23:04:04 +0100 Subject: matched T2DLL as well as i can --- src/T2DLL/T2RouteCEArray.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/T2DLL/T2RouteCEArray.cpp') diff --git a/src/T2DLL/T2RouteCEArray.cpp b/src/T2DLL/T2RouteCEArray.cpp index 9a2de67..537c3f0 100644 --- a/src/T2DLL/T2RouteCEArray.cpp +++ b/src/T2DLL/T2RouteCEArray.cpp @@ -19,24 +19,24 @@ void T2RouteCEArray::Insert(unsigned int a, unsigned int b) { } unsigned int T2RouteCEArray::GetSameID(T2RouteCEArray* other) { - unsigned int result = 0; + unsigned int theSameID = 0; - LArrayIterator outer(*this); - unsigned int outerItem; + LArrayIterator theLeftIterator(*this); + unsigned int theLeftReqID; - while (outer.Next(&outerItem)) { - LArrayIterator inner(*other); - unsigned int innerItem; + while (theLeftIterator.Next(&theLeftReqID)) { + LArrayIterator theRightIterator(*other); + unsigned int theRightReqID; - while (inner.Next(&innerItem)) { - if (outerItem == innerItem) { - result = outerItem; + while (theRightIterator.Next(&theRightReqID)) { + if (theLeftReqID == theRightReqID) { + theSameID = theLeftReqID; break; } } } - return result; + return theSameID; } BOOL T2RouteCEArray::HasCrossEquip() const { -- cgit v1.2.3