Bug #380 » 0049-Correct-rand_map_pos_characteristic-header.patch
server/generator/mapgen.c | ||
---|---|---|
typedef enum { MC_NONE, MC_LOW, MC_NLOW } miscellaneous_c;
|
||
/**************************************************************************
|
||
These functions test for conditions used in rand_map_pos_characteristic
|
||
These functions test for conditions used in rand_map_pos_characteristic()
|
||
**************************************************************************/
|
||
/**********************************************************************//**
|
||
... | ... | |
/**********************************************************************//**
|
||
A filter function to be passed to rand_map_pos_filtered(). See
|
||
rand_map_pos_characteristic for more explanation.
|
||
rand_map_pos_characteristic() for more explanation.
|
||
**************************************************************************/
|
||
static bool condition_filter(const struct tile *ptile, const void *data)
|
||
{
|
||
... | ... | |
/**********************************************************************//**
|
||
Return random map coordinates which have some conditions and which are
|
||
not yet placed on pmap.
|
||
Returns FALSE if there is no such position.
|
||
Returns NULL if there is no such position.
|
||
**************************************************************************/
|
||
static struct tile *rand_map_pos_characteristic(wetness_c wc,
|
||
temperature_type tc,
|