From 242a1d796ac99c44c7fbc36753e2c610aae123f4 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sun, 13 Mar 2022 11:24:33 +0100 Subject: [PATCH] Remove the "type" declaration from a .model line --- src/frontend/inpcom.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 26ebb2047..70c354d98 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -9660,6 +9660,17 @@ static void rem_mfg_from_models(struct card *deck) start++; } } + start = strstr(curr_line, "type="); + if (start) { + end = nexttok(start); + if (*end == '\0') + *start = '\0'; + else + while (start < end) { + *start = ' '; + start++; + } + } } } }