Project

General

Profile

Bug #1481 ยป 0075-Add-tile_resource_is_valid-function-header.patch

Marko Lindqvist, 07/21/2025 05:18 AM

View differences:

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);
    (1-1/1)