From 6ceb12e810eb77b111d3c0c5b61cad23084e7b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20Szil=C3=A1gyi?= Date: Tue, 20 Jun 2023 15:05:34 +0200 Subject: [PATCH] -s 4 (SES) option never worked, now fixed Although the calculation of SES was added (-s 4), it never worked as the program did not accept the value 4 and used 3 instead. --- EDTSurf.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/EDTSurf.cpp b/EDTSurf.cpp index 4d461dd..a8817b1 100644 --- a/EDTSurf.cpp +++ b/EDTSurf.cpp @@ -115,6 +115,7 @@ int main(int argc, char** argv) else if(tval==2) inum[1]=2; else if(tval==3) inum[1]=3; else if(tval==0) inum[1]=0; + else if(tval==4) inum[1]=4; else { printf("omit wrong value after -s\n"); @@ -241,7 +242,10 @@ int main(int argc, char** argv) printf("surface: VWS, "); else if(inum[1]==2 || inum[1]==0) printf("surface: SAS, "); - else printf("surface: MS, "); + else if(inum[1]==3) + printf("surface: MS, "); + else if(inum[1]==4) + printf("surface: SES, "); if(inum[2]==1) printf("color: pure, "); else if(inum[2]==2)