diff --git a/src/elrail_func.h b/src/elrail_func.h --- a/src/elrail_func.h +++ b/src/elrail_func.h @@ -18,7 +18,7 @@ * Test if a rail type has catenary * @param rt Rail type to test */ -static inline bool HasRailCatenary(RailType rt) +inline bool HasRailCatenary(RailType rt) { return HasBit(GetRailTypeInfo(rt)->flags, RTF_CATENARY); } @@ -27,7 +27,7 @@ static inline bool HasRailCatenary(RailT * Test if we should draw rail catenary * @param rt Rail type to test */ -static inline bool HasRailCatenaryDrawn(RailType rt) +inline bool HasRailCatenaryDrawn(RailType rt) { return HasRailCatenary(rt) && !IsInvisibilitySet(TO_CATENARY) && !_settings_game.vehicle.disable_elrails; }