(svn r17447) -Codechange: rename a local variable so it doesn't collide with the name of a global function
This commit is contained in:
@@ -1039,7 +1039,7 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, DoCommandFlag flags, uin
|
|||||||
CommandCost ret, total_cost(EXPENSES_CONSTRUCTION);
|
CommandCost ret, total_cost(EXPENSES_CONSTRUCTION);
|
||||||
int signal_ctr;
|
int signal_ctr;
|
||||||
byte signals;
|
byte signals;
|
||||||
bool error = true;
|
bool err = true;
|
||||||
TileIndex end_tile;
|
TileIndex end_tile;
|
||||||
TileIndex start_tile = 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 */
|
/* Be user-friendly and try placing signals as much as possible */
|
||||||
if (CmdSucceeded(ret)) {
|
if (CmdSucceeded(ret)) {
|
||||||
error = false;
|
err = false;
|
||||||
total_cost.AddCost(ret);
|
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.
|
/** Build signals on a stretch of track.
|
||||||
|
Reference in New Issue
Block a user