summaryrefslogtreecommitdiff
path: root/src/road.h
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-04-30 17:01:26 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-05-03 19:46:57 +0200
commit2feb801e56f5f36121bcc44d04cb46937987c490 (patch)
tree4ca88e9a3e2a917e489cb86cd80e230eb2bdafeb /src/road.h
parent983c7ade60f82a49d8c23c1f295add1fd9a913b0 (diff)
downloadopenttd-2feb801e56f5f36121bcc44d04cb46937987c490.tar.xz
Codechange: Replace FOR_ALL_ROADTRAMTYPES with range-based for loops
Diffstat (limited to 'src/road.h')
-rw-r--r--src/road.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road.h b/src/road.h
index becbf4051..6a2af6698 100644
--- a/src/road.h
+++ b/src/road.h
@@ -32,7 +32,7 @@ enum RoadTramTypes : uint8 {
};
DECLARE_ENUM_AS_BIT_SET(RoadTramTypes)
-#define FOR_ALL_ROADTRAMTYPES(x) for (RoadTramType x : { RTT_ROAD, RTT_TRAM })
+static const RoadTramType _roadtramtypes[] = { RTT_ROAD, RTT_TRAM };
/** Roadtype flags. Starts with RO instead of R because R is used for rails */
enum RoadTypeFlags {