(svn r19791) -Change: use the typed FOR_EACH_SET_BIT for RoadTypes (adf88)
This commit is contained in:
@@ -18,6 +18,17 @@
|
||||
#include "company_type.h"
|
||||
#include "tile_type.h"
|
||||
|
||||
/**
|
||||
* Iterate through each set RoadType in a RoadTypes value.
|
||||
* For more informations see FOR_EACH_SET_BIT_EX.
|
||||
*
|
||||
* @param var Loop index variable that stores fallowing set road type. Must be of type RoadType.
|
||||
* @param road_types The value to iterate through (any expression).
|
||||
*
|
||||
* @see FOR_EACH_SET_BIT_EX
|
||||
*/
|
||||
#define FOR_EACH_SET_ROADTYPE(var, road_types) FOR_EACH_SET_BIT_EX(RoadType, var, RoadTypes, road_types)
|
||||
|
||||
/**
|
||||
* Whether the given roadtype is valid.
|
||||
* @param rt the roadtype to check for validness
|
||||
|
Reference in New Issue
Block a user