Browse Source

retain type=0, type=1, type=+1, or type=-1 in a .model card,

even if compatmode PS or LT are set.
pre-master-46
Holger Vogt 9 months ago
parent
commit
c2f9f6d3f4
  1. 3
      src/frontend/inpcom.c

3
src/frontend/inpcom.c

@ -9057,7 +9057,8 @@ static void rem_mfg_from_models(struct card *deck)
} }
} }
start = search_plain_identifier(curr_line, "type"); 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); end = nexttok(start);
if (*end == '\0') if (*end == '\0')
*start = '\0'; *start = '\0';

Loading…
Cancel
Save