From 022ce62e8cbd5216b8a0510b232908ec007aa744 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 7 Jan 2023 00:08:15 +0200 Subject: [PATCH 44/44] Fix action_prob_pre_action_dice_roll() indentation Reported by kvilhaugsvik See osdn #41930 Signed-off-by: Marko Lindqvist --- common/actions.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/common/actions.c b/common/actions.c index 38f84f73fe..9c25f52f64 100644 --- a/common/actions.c +++ b/common/actions.c @@ -5506,21 +5506,21 @@ action_prob_pre_action_dice_roll(const struct player *act_player, .unit = act_unit, }, act_player)) { - int unconverted = action_dice_roll_odds(act_player, act_unit, tgt_city, - tgt_player, paction); - struct act_prob result = { .min = unconverted * ACTPROB_VAL_1_PCT, - .max = unconverted * ACTPROB_VAL_1_PCT }; + int unconverted = action_dice_roll_odds(act_player, act_unit, tgt_city, + tgt_player, paction); + struct act_prob result = { .min = unconverted * ACTPROB_VAL_1_PCT, + .max = unconverted * ACTPROB_VAL_1_PCT }; - return result; - } else { - /* Could be improved to return a more exact probability in some cases. - * Example: The player has enough information to know that the - * probability always will be above 25% and always under 75% because - * the only effect with unknown requirements that may apply adds (or - * subtracts) 50% while all the requirements of the other effects that - * may apply are known. */ - return ACTPROB_NOT_KNOWN; - } + return result; + } else { + /* Could be improved to return a more exact probability in some cases. + * Example: The player has enough information to know that the + * probability always will be above 25% and always under 75% because + * the only effect with unknown requirements that may apply adds (or + * subtracts) 50% while all the requirements of the other effects that + * may apply are known. */ + return ACTPROB_NOT_KNOWN; + } } /**********************************************************************//** @@ -5530,12 +5530,12 @@ action_prob_pre_action_dice_roll(const struct player *act_player, **************************************************************************/ static struct act_prob action_prob_battle_then_dice_roll(const struct player *act_player, - const struct unit *act_unit, - const struct city *tgt_city, - const struct unit *tgt_unit, - const struct tile *tgt_tile, - const struct player *tgt_player, - const struct action *paction) + const struct unit *act_unit, + const struct city *tgt_city, + const struct unit *tgt_unit, + const struct tile *tgt_tile, + const struct player *tgt_player, + const struct action *paction) { struct act_prob battle; struct act_prob dice_roll; -- 2.39.0