Feature #2023 » 0033-Access-areas-Add-player-specific-index.patch
| common/fc_types.h | ||
|---|---|---|
|
struct access_area {
|
||
|
const struct player *plr;
|
||
|
int index;
|
||
|
struct city_list *cities;
|
||
|
bool capital;
|
||
|
bv_tiledefs tiledefs;
|
||
| server/aahand.c | ||
|---|---|---|
|
if (access_utype != nullptr) {
|
||
|
struct unit *access_unit;
|
||
|
struct aarea_list *alist;
|
||
|
int index = 0;
|
||
|
area_list_clear_plr(plr);
|
||
|
alist = aarea_list_new();
|
||
| ... | ... | |
|
struct pf_parameter parameter;
|
||
|
struct pf_map *pfm;
|
||
|
aarea->id = index++;
|
||
|
aarea->cities = city_list_new();
|
||
|
aarea->capital = is_capital(pcity);
|
||