Project

General

Profile

Feature #1444 » 0079-tiledef-Add-tile_matches_tiledef-function.patch

Marko Lindqvist, 05/24/2025 05:27 PM

View differences:

common/tiledef.c
return nullptr;
}
/************************************************************************//**
Check if tile matches tiledef
****************************************************************************/
bool tile_matches_tiledef(const struct tiledef *td, const struct tile *ptile)
{
extra_type_list_iterate(td->extras, pextra) {
if (!tile_has_extra(ptile, pextra)) {
return FALSE;
}
} extra_type_list_iterate_end;
return TRUE;
}
common/tiledef.h
} \
}
bool tile_matches_tiledef(const struct tiledef *td, const struct tile *ptile)
fc__attribute((nonnull (1, 2)));
#ifdef __cplusplus
}
#endif /* __cplusplus */
(2-2/2)