(svn r17447) -Codechange: rename a local variable so it doesn't collide with the name of a global function

This commit is contained in:
rubidium 2009-09-07 09:07:56 +00:00
parent 1f21a5cb41
commit 167d632e16
1 changed files with 3 additions and 3 deletions

View File

@ -1039,7 +1039,7 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, DoCommandFlag flags, uin
CommandCost ret, total_cost(EXPENSES_CONSTRUCTION);
int signal_ctr;
byte signals;
bool error = true;
bool err = true;
TileIndex end_tile;
TileIndex start_tile = tile;
@ -1118,7 +1118,7 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, DoCommandFlag flags, uin
/* Be user-friendly and try placing signals as much as possible */
if (CmdSucceeded(ret)) {
error = false;
err = false;
total_cost.AddCost(ret);
}
}
@ -1143,7 +1143,7 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, DoCommandFlag flags, uin
}
}
return error ? CMD_ERROR : total_cost;
return err ? CMD_ERROR : total_cost;
}
/** Build signals on a stretch of track.