diff options
Diffstat (limited to 'src/T2DLL/T2StairModuleList.cpp')
-rw-r--r-- | src/T2DLL/T2StairModuleList.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/T2DLL/T2StairModuleList.cpp b/src/T2DLL/T2StairModuleList.cpp index 876e571..278b088 100644 --- a/src/T2DLL/T2StairModuleList.cpp +++ b/src/T2DLL/T2StairModuleList.cpp @@ -27,29 +27,29 @@ void T2StairModuleList::AddModule(int position, const RECT& rect) { } void T2StairModuleList::AddModule(T2TowerDoc* towerDoc, const RECT& rect, BOOL insertAtEnd) { - T2StairModule *module1 = new T2StairModule; - if (module1) { - module1->SetModuleRect(rect); - module1->mDirection = kStairDirection1; - module1->SetUsed(true); - module1->SetModuleID(towerDoc); + T2StairModule *theUpModule = new T2StairModule; + if (theUpModule) { + theUpModule->SetModuleRect(rect); + theUpModule->mDirection = kStairDirection1; + theUpModule->SetUsed(true); + theUpModule->SetModuleID(towerDoc); } - T2StairModule *module2 = new T2StairModule; - if (module2) { - module2->SetModuleRect(rect); - module2->mDirection = kStairDirection2; - module2->SetUsed(true); - module2->SetModuleID(towerDoc); + T2StairModule *theDownModule = new T2StairModule; + if (theDownModule) { + theDownModule->SetModuleRect(rect); + theDownModule->mDirection = kStairDirection2; + theDownModule->SetUsed(true); + theDownModule->SetModuleID(towerDoc); } - if (module1 && module2) { + if (theUpModule && theDownModule) { if (insertAtEnd) { - InsertModuleAt(mItemCount + 1, module1); - InsertModuleAt(mItemCount + 1, module2); + InsertModuleAt(mItemCount + 1, theUpModule); + InsertModuleAt(mItemCount + 1, theDownModule); } else { - InsertModuleAt(1, module2); - InsertModuleAt(1, module1); + InsertModuleAt(1, theDownModule); + InsertModuleAt(1, theUpModule); } } } |