X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.c;h=050f670edea5668ecae1469b4fe95ad5f9e115f9;hb=222e7873f49cb4b28e872552e8cdc1a8a3e2a605;hp=b456772c5a9a058e5e71a61c1d5f7feaf7313c32;hpb=1dbdcf7305347ff9f650b5434ab036e06e4be24c;p=super-star-trek.git diff --git a/sst.c b/sst.c index b456772..050f670 100644 --- a/sst.c +++ b/sst.c @@ -38,7 +38,7 @@ Here are Tom Almy's changes: 2. deathray improvement (but keeping original failure alternatives) 3. Tholian Web -s + 4. Enemies can ram the Enterprise. Regular Klingons and Romulans can move in Expert and Emeritus games. This code could use improvement. @@ -201,7 +201,6 @@ static void helpme(void) { static void makemoves(void) { int i, hitme; - char ch; while (TRUE) { /* command loop */ hitme = FALSE; justin = 0; @@ -385,9 +384,6 @@ static void makemoves(void) { int main(int argc, char **argv) { int i, option, usecurses = TRUE; - int hitme; - char ch; - while ((option = getopt(argc, argv, "t")) != -1) { switch (option) { case 't': @@ -430,6 +426,7 @@ int main(int argc, char **argv) { skip(1); ioend(); puts("May the Great Bird of the Galaxy roost upon your home planet."); + exit(0); }