From 4048610872652630969a6fce9a297e06ca4b66e2 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 26 Jan 2026 16:15:01 +0100 Subject: [PATCH] Don't read .agemodel, if newcompat.de is not set. --- src/frontend/inpcom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 3857f11a4..a0d30f249 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1102,10 +1102,9 @@ struct card *inp_readall(FILE *fp, const char *dir_name, const char* file_name, /* some syntax checks, excluding title line */ inp_check_syntax(working); + /* collect .agemodel data, skip .agemodel if newcompat.de is not set */ + readdegparams(working); if (newcompat.de) { - /* collect .agemodel data */ - readdegparams(working); - /* replace all [ ] by @, except for a instances */ remsqrbra(working);