Codechange: coding style fixes
This commit is contained in:
@@ -1242,7 +1242,7 @@ bool AfterLoadGame()
|
||||
}
|
||||
}
|
||||
|
||||
for (Vehicle* v : Vehicle::Iterate()) {
|
||||
for (Vehicle *v : Vehicle::Iterate()) {
|
||||
if (!v->IsGroundVehicle()) continue;
|
||||
if (IsBridgeTile(v->tile)) {
|
||||
DiagDirection dir = GetTunnelBridgeDirection(v->tile);
|
||||
@@ -2397,7 +2397,7 @@ bool AfterLoadGame()
|
||||
* 'default' names, after that we can assign the names. */
|
||||
for (Depot *d : Depot::Iterate()) d->town_cn = UINT16_MAX;
|
||||
|
||||
for (Depot* d : Depot::Iterate()) MakeDefaultName(d);
|
||||
for (Depot *d : Depot::Iterate()) MakeDefaultName(d);
|
||||
}
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_142)) {
|
||||
@@ -2482,7 +2482,7 @@ bool AfterLoadGame()
|
||||
if (!wp->name.empty()) wp->town_cn = UINT16_MAX;
|
||||
}
|
||||
|
||||
for (Waypoint* wp : Waypoint::Iterate()) {
|
||||
for (Waypoint *wp : Waypoint::Iterate()) {
|
||||
if (!wp->name.empty()) MakeDefaultName(wp);
|
||||
}
|
||||
}
|
||||
|
@@ -48,7 +48,7 @@ static std::vector<Engine*> _temp_engine;
|
||||
* The allocated Engine must be freed using FreeEngine;
|
||||
* @return Allocated engine.
|
||||
*/
|
||||
static Engine* CallocEngine()
|
||||
static Engine *CallocEngine()
|
||||
{
|
||||
uint8_t *zero = CallocT<uint8_t>(sizeof(Engine));
|
||||
Engine *engine = new (zero) Engine();
|
||||
|
@@ -86,7 +86,7 @@ void MoveWaypointsToBaseStations()
|
||||
/* As of version 17, we recalculate the custom graphic ID of waypoints
|
||||
* from the GRF ID / station index. */
|
||||
for (OldWaypoint &wp : _old_waypoints) {
|
||||
StationClass* stclass = StationClass::Get(STAT_CLASS_WAYP);
|
||||
StationClass *stclass = StationClass::Get(STAT_CLASS_WAYP);
|
||||
for (uint i = 0; i < stclass->GetSpecCount(); i++) {
|
||||
const StationSpec *statspec = stclass->GetSpec(i);
|
||||
if (statspec != nullptr && statspec->grf_prop.grffile->grfid == wp.grfid && statspec->grf_prop.local_id == wp.localidx) {
|
||||
|
Reference in New Issue
Block a user