From 880125c8640a183b127bdee1931c54a039846936 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sun, 7 Aug 2022 16:09:15 +0300 Subject: [PATCH 60/60] Force changed max rates to H_RATES AI players See osdn #44188 Signed-off-by: Marko Lindqvist --- server/plrhand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/plrhand.c b/server/plrhand.c index 82b2ae48be..96c830adf2 100644 --- a/server/plrhand.c +++ b/server/plrhand.c @@ -1992,8 +1992,8 @@ struct player_economic player_limit_to_max_rates(struct player *pplayer) int maxrate, surplus; struct player_economic economic; - /* ai players allowed to cheat */ - if (is_ai(pplayer)) { + /* AI players allowed to cheat */ + if (is_ai(pplayer) && !has_handicap(pplayer, H_RATES)) { return pplayer->economic; } -- 2.35.1