Don't read .agemodel, if newcompat.de is not set.

This commit is contained in:
Holger Vogt 2026-01-26 16:15:01 +01:00
parent 2007ad30d7
commit 4048610872
1 changed files with 2 additions and 3 deletions

View File

@ -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);