From c2f9f6d3f4aa59701123301e948b5f3ca724b0a8 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 13 Jul 2025 11:55:30 +0200 Subject: [PATCH] retain type=0, type=1, type=+1, or type=-1 in a .model card, even if compatmode PS or LT are set. --- src/frontend/inpcom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 615baf042..e31118e76 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -9057,7 +9057,8 @@ static void rem_mfg_from_models(struct card *deck) } } start = search_plain_identifier(curr_line, "type"); - if (start && start[4] == '=') { + /* still retain type=0, type=1, type=+1, or type=-1 */ + if (start && start[4] == '=' && !isdigit_c(start[5]) && !((start[5] == '-' || start[5] == '+') && isdigit_c(start[6]))) { end = nexttok(start); if (*end == '\0') *start = '\0';