Merge: Codechange: Use null pointer literal instead of the NULL macro
This commit is contained in:
@@ -135,7 +135,7 @@ struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
|
||||
int GetDisplaySpeed() const { return this->gcache.last_speed / 2; }
|
||||
int GetDisplayMaxSpeed() const { return this->vcache.cached_max_speed / 2; }
|
||||
Money GetRunningCost() const;
|
||||
int GetDisplayImageWidth(Point *offset = NULL) const;
|
||||
int GetDisplayImageWidth(Point *offset = nullptr) const;
|
||||
bool IsInDepot() const { return this->state == RVSB_IN_DEPOT; }
|
||||
bool Tick();
|
||||
void OnNewDay();
|
||||
@@ -154,7 +154,7 @@ struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
|
||||
|
||||
inline bool IsRoadVehicleOnLevelCrossing() const
|
||||
{
|
||||
for (const RoadVehicle *u = this; u != NULL; u = u->Next()) {
|
||||
for (const RoadVehicle *u = this; u != nullptr; u = u->Next()) {
|
||||
if (IsLevelCrossingTile(u->tile)) return true;
|
||||
}
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user