Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #824565 ยป 0048-Tex-Use-tex-map-unit-list-when-evaluating-city-worke.patch

Marko Lindqvist, 2019-07-02 08:01 PM

View differences:

ai/tex/texaicity.c
/* ai/tex */
#include "texaimsg.h"
#include "texaiplayer.h"
#include "texaicity.h"
......
switch (limit) {
case TWTL_CURRENT_UNITS:
units = pplayer->units;
units = texai_player_units(pplayer);
state.wants = NULL;
break;
case TWTL_BUILDABLE_UNITS:
ai/tex/texaiplayer.c
/**********************************************************************//**
Callback that returns unit list from player tex ai data.
**************************************************************************/
static struct unit_list *texai_player_units(struct player *pplayer)
struct unit_list *texai_player_units(struct player *pplayer)
{
struct texai_plr *plr_data = player_ai_data(pplayer, texai_get_self());
ai/tex/texaiplayer.h
return (struct texai_plr *)player_ai_data(pplayer, ait);
}
struct unit_list *texai_player_units(struct player *pplayer);
#endif /* FC__TEXAIPLAYER_H */
    (1-1/1)