HOPKINS: Renamed anonymous parameter in LinesManager

This commit is contained in:
Paul Gilbert 2013-03-31 11:19:38 -04:00
parent 221ff31fee
commit f719be3318
2 changed files with 4 additions and 4 deletions

View File

@ -2425,7 +2425,7 @@ bool LinesManager::PLAN_TEST(int paramX, int paramY, int superRouteIdx, int para
}
// Test line
int LinesManager::testLine(int paramX, int paramY, int *a3, int *foundLineIdx, int *foundDataIdx) {
int LinesManager::testLine(int paramX, int paramY, int *testValue, int *foundLineIdx, int *foundDataIdx) {
int16 *lineData;
int lineDataEndIdx;
int collLineIdx;
@ -2435,7 +2435,7 @@ int LinesManager::testLine(int paramX, int paramY, int *a3, int *foundLineIdx, i
lineData = _lineItem[idx]._lineData;
lineDataEndIdx = _lineItem[idx]._lineDataEndIdx;
if (lineData[0] == paramX && lineData[1] == paramY) {
*a3 = 1;
*testValue = 1;
int posX = lineData[2 * (lineDataEndIdx - 1)];
int posY = lineData[2 * (lineDataEndIdx - 1) + 1];
if (_lineItem[idx]._directionRouteInc == DIR_DOWN || _lineItem[idx]._directionRouteInc == DIR_UP)
@ -2449,7 +2449,7 @@ int LinesManager::testLine(int paramX, int paramY, int *a3, int *foundLineIdx, i
return idx;
}
if (lineData[2 * (lineDataEndIdx - 1)] == paramX && lineData[2 * (lineDataEndIdx - 1) + 1] == paramY) {
*a3 = 2;
*testValue = 2;
int posX = lineData[0];
int posY = lineData[1];
if (_lineItem[idx]._directionRouteInc == DIR_DOWN || _lineItem[idx]._directionRouteInc == DIR_UP)

View File

@ -149,7 +149,7 @@ private:
bool checkSmoothMove(int fromX, int fromY, int destX, int destY);
bool makeSmoothMove(int fromX, int fromY, int destX, int destY);
int characterRoute(int fromX, int fromY, int destX, int destY, int startLineIdx, int endLineIdx, int routeIdx);
int testLine(int paramX, int paramY, int *a3, int *foundLineIdx, int *foundDataIdx);
int testLine(int paramX, int paramY, int *testValue, int *foundLineIdx, int *foundDataIdx);
void useRoute0(int idx, int curRouteIdx);
void useRoute1(int idx, int curRouteIdx);
void useRoute2(int idx, int curRouteIdx);