Bug #1481 ยป 0075-Add-tile_resource_is_valid-function-header.patch
| common/tile.h | ||
|---|---|---|
| #define tile_claimer(_tile) ((_tile)->claimer) | ||
| #define tile_resource(_tile) ((_tile)->resource) | ||
| /************************************************************************//** | ||
|   Check if the tile has a valid resource on it. | ||
| ****************************************************************************/ | ||
| static inline bool tile_resource_is_valid(const struct tile *ptile) | ||
| { return ptile->resource != nullptr | ||
|     && BV_ISSET(ptile->extras, ptile->resource->id); | ||