Feature #1444 » 0079-tiledef-Add-tile_matches_tiledef-function.patch
| 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 */
|
||
- « Previous
- 1
- 2
- Next »