Codechange: rename and make StationVehicleType a scoped enum (#15674)

StatiionHadVehicleOfType renamed to StationVehicleTypes and turned into an EnumBitSet
This commit is contained in:
Peter Nelson
2026-06-04 23:16:23 +01:00
committed by GitHub
parent 2ef1623c05
commit a892d8e848
8 changed files with 25 additions and 24 deletions
+2 -2
View File
@@ -440,8 +440,8 @@ static uint ShipAccelerate(Vehicle *v)
static void ShipArrivesAt(const Vehicle *v, Station *st)
{
/* Check if station was ever visited before */
if (!(st->had_vehicle_of_type & HVOT_SHIP)) {
st->had_vehicle_of_type |= HVOT_SHIP;
if (!st->had_vehicle_of_type.Test(StationVehicleType::Ship)) {
st->had_vehicle_of_type.Set(StationVehicleType::Ship);
AddVehicleNewsItem(
GetEncodedString(STR_NEWS_FIRST_SHIP_ARRIVAL, st->index),