From 55d11526d81b77c001012ff4724a37f90664f929 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 7 May 2021 22:55:09 +0300 Subject: [PATCH 26/26] 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 9339680459..a5a5744cf2 100644 --- a/ai/default/aihand.c +++ b/ai/default/aihand.c @@ -113,8 +113,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) @@ -129,7 +129,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