Changeset - r12944:5f0fae995b6c
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-09-07 09:07:56
rubidium@openttd.org
(svn r17447) -Codechange: rename a local variable so it doesn't collide with the name of a global function
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/rail_cmd.cpp
Show inline comments
 
@@ -1039,7 +1039,7 @@ static CommandCost CmdSignalTrackHelper(
 
	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(
 

	
 
			/* 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(
 
		}
 
	}
 

	
 
	return error ? CMD_ERROR : total_cost;
 
	return err ? CMD_ERROR : total_cost;
 
}
 

	
 
/** Build signals on a stretch of track.
0 comments (0 inline, 0 general)