Changeset - r28128:6923d4297e18
[Not reviewed]
master
0 3 0
Peter Nelson - 13 months ago 2023-11-09 19:23:26
peter1138@openttd.org
Codechange: Ensure space between `for`/`if` and `(`.
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/league_gui.cpp
Show inline comments
 
@@ -278,7 +278,7 @@ private:
 
		this->title = lt->title;
 

	
 
		std::vector<const LeagueTableElement *> elements;
 
		for(LeagueTableElement *lte : LeagueTableElement::Iterate()) {
 
		for (LeagueTableElement *lte : LeagueTableElement::Iterate()) {
 
			if (lte->table == this->table) {
 
				elements.push_back(lte);
 
			}
src/order_gui.cpp
Show inline comments
 
@@ -792,7 +792,7 @@ public:
 
		if (_settings_client.gui.quick_goto && v->owner == _local_company) {
 
			/* If there are less than 2 station, make Go To active. */
 
			int station_orders = 0;
 
			for(const Order *order : v->Orders()) {
 
			for (const Order *order : v->Orders()) {
 
				if (order->IsType(OT_GOTO_STATION)) station_orders++;
 
			}
 

	
src/rail_cmd.cpp
Show inline comments
 
@@ -1372,7 +1372,7 @@ static CommandCost CmdSignalTrackHelper(
 
					last_suitable_trackdir = trackdir;
 
				}
 
			}
 
		} else if(signal_ctr >= last_used_ctr + signal_density) {
 
		} else if (signal_ctr >= last_used_ctr + signal_density) {
 
			/* We're always keeping regular interval between signals so doesn't matter whether we succeed or not. */
 
			build_signal(tile, trackdir, false);
 
			last_used_ctr = signal_ctr;
 
@@ -1396,7 +1396,7 @@ static CommandCost CmdSignalTrackHelper(
 
						/* To keep regular interval we need to emulate placing signals on a bridge.
 
						 * We start with TILE_AXIAL_DISTANCE as one bridge tile gets processed in the main loop. */
 
						signal_ctr += TILE_AXIAL_DISTANCE;
 
						for(uint i = TILE_AXIAL_DISTANCE; i < len; i += TILE_AXIAL_DISTANCE) {
 
						for (uint i = TILE_AXIAL_DISTANCE; i < len; i += TILE_AXIAL_DISTANCE) {
 
							if (signal_ctr >= last_used_ctr + signal_density) last_used_ctr = signal_ctr;
 
							signal_ctr += TILE_AXIAL_DISTANCE;
 
						}
0 comments (0 inline, 0 general)