From 6cf375d30611b0782bbab9534587f4ddf696ef53 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 7 May 2021 22:45:56 +0300 Subject: [PATCH 54/54] dai_calc_data(): List 'income' as outgoing parameter in function header See osdn #42192 Signed-off-by: Marko Lindqvist --- ai/default/aihand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ai/default/aihand.c b/ai/default/aihand.c index 37406686f2..456fca49db 100644 --- a/ai/default/aihand.c +++ b/ai/default/aihand.c @@ -112,8 +112,8 @@ static void dai_manage_spaceship(struct player *pplayer) } /*************************************************************************//** - Returns the total amount of trade generated (trade) and total amount of - gold needed as upkeep (expenses). + Returns the total amount of trade generated (trade), total amount of + gold needed as upkeep (expenses), and total amount of gold gained (income). *****************************************************************************/ void dai_calc_data(const struct player *pplayer, int *trade, int *expenses, int *income) @@ -128,7 +128,7 @@ void dai_calc_data(const struct player *pplayer, int *trade, int *expenses, *income = 0; } - /* Find total trade surplus and gold expenses */ + /* Find total trade surplus, gold expenses, and gold income */ city_list_iterate(pplayer->cities, pcity) { if (NULL != trade) { *trade += pcity->surplus[O_TRADE]; -- 2.30.2