X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=blobdiff_plain;f=sst.c;h=2e1038b0469d7b2a7a9a7f649d22e157daff8ab1;hp=72aeedfa662aa1520f4e7ac77628ba46504b32be;hb=4be633b9c4830f6cf8c7213c91a31d3ea12f313c;hpb=79bb2d4de4bc21b4d73df216e4b5531ac712ee33 diff --git a/sst.c b/sst.c index 72aeedf..2e1038b 100644 --- a/sst.c +++ b/sst.c @@ -199,15 +199,11 @@ static void helpme(void) { key = scan(); while (TRUE) { if (key == IHEOL) { -#ifdef SERGEEV setwnd(BOTTOM_WINDOW); -#endif /* SERGEEV */ proutn("Help on what command? "); key = scan(); } -#ifdef SERGEEV setwnd(LOWER_WINDOW); -#endif /* SERGEEV */ if (key == IHEOL) return; for (i = 0; i < NUMCOMMANDS; i++) { if (strcasecmp(commands[i].name, citem)==0) { @@ -268,34 +264,10 @@ static void helpme(void) { fclose(fp); } -void drawmaps(short l) { -/* hook to be called after moving to redraw maps */ -#ifdef SERGEEV - _setcursortype(_NOCURSOR); - if (l==1) sensor(); - if (l!=2) setwnd(LEFTUPPER_WINDOW); - gotoxy(1,1); - strcpy(line,"s"); - srscan(1); - if (l!=2){ - setwnd(SRSCAN_WINDOW); - clrscr(); - srscan(2); - setwnd(LRSCAN_WINDOW); - clrscr(); - strcpy(line,"l"); - lrscan(); - _setcursortype(_NORMALCURSOR); - } -#endif /* SERGEEV */ -} - static void makemoves(void) { int i, hitme; -#ifdef SERGEEV clrscr(); setwnd(LOWER_WINDOW); -#endif /* SERGEEV */ while (TRUE) { /* command loop */ drawmaps(1); while (TRUE) { /* get a command */ @@ -304,10 +276,8 @@ static void makemoves(void) { Time = 0.0; i = -1; chew(); -#ifdef SERGEEV setwnd(BOTTOM_WINDOW); clrscr(); -#endif /* SERGEEV */ proutn("COMMAND> "); if (scan() == IHEOL) { #ifdef SERGEEV @@ -319,12 +289,10 @@ static void makemoves(void) { #endif /* SERGEEV */ continue; } -#ifdef SERGEEV ididit=0; clrscr(); setwnd(LOWER_WINDOW); clrscr(); -#endif /* SERGEEV */ for (i=0; i < ABANDON; i++) if (isit(commands[i].name)) { i = commands[i].value; @@ -444,9 +412,7 @@ static void makemoves(void) { break; case SAVE: // Save Game freeze(FALSE); -#ifdef SERGEEV clrscr(); -#endif /* SERGEEV */ if (skill > 3) prout("WARNING--Saved games produce no plaques!"); break; @@ -517,14 +483,9 @@ int main(int argc, char **argv) { } } -#ifndef SERGEEV - iostart(usecurses); -#else randomize(); - textattr(7); - clrscr(); - setwnd(FULLSCREEN_WINDOW); -#endif /* SERGEEV */ + iostart(usecurses); + line[0] = '\0'; for (i = optind; i < argc; i++) { strcat(line, argv[i]); @@ -551,15 +512,11 @@ int main(int argc, char **argv) { } proutn("Do you want to play again? "); if (!ja()) break; -#ifdef SERGEEV setwnd(FULLSCREEN_WINDOW); clrscr(); -#endif /* SERGEEV */ } skip(1); -#ifndef SERGEEV ioend(); -#endif /* SERGEEV */ prout("May the Great Bird of the Galaxy roost upon your home planet."); return 0; } @@ -661,14 +618,12 @@ int scan(void) { return IHEOL; } cgetline(line, sizeof(line)); -#ifdef SERGEEV fflush(stdin); if (curwnd==BOTTOM_WINDOW){ clrscr(); setwnd(LOWER_WINDOW); clrscr(); } -#endif /* SERGEEV */ linep = line; } // Skip leading white space