From 5657b05171b5980ee1175e8910e3330a02aae9d2 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 19 Apr 2021 16:09:56 +0300 Subject: [PATCH 34/34] Disable PF_WAIT_DEBUG by default This fixes a regression that an existing error situation is turned more serious by failing an assert on it. The assert would also be overzealous even without the actual error situation it currently hits. See osdn #42029 Signed-off-by: Marko Lindqvist --- common/aicore/path_finding.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/aicore/path_finding.h b/common/aicore/path_finding.h index 844eb62871..307df53386 100644 --- a/common/aicore/path_finding.h +++ b/common/aicore/path_finding.h @@ -277,7 +277,8 @@ extern "C" { * value & 4 means checking health */ #ifndef PF_WAIT_DEBUG #ifdef FREECIV_DEBUG -#define PF_WAIT_DEBUG 3 +/* Disabled by default - the assert enabled can be overzealous with some rulesets */ +/* #define PF_WAIT_DEBUG 3 */ #endif #endif /* =========================== Structures ================================ */ -- 2.30.2