X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=sst.c;h=346bb4c740c4a697ed76451183eadf6375f923b9;hb=a96a31750d67dfc0d4636aae4040155f78d5eda8;hp=409b489520104737673bfa7bf41782906ee49f94;hpb=ecb536f64ce4a4c5b97c78132791b877efb9a6e5;p=super-star-trek.git diff --git a/sst.c b/sst.c index 409b489..346bb4c 100644 --- a/sst.c +++ b/sst.c @@ -261,8 +261,9 @@ static void helpme(void) { fclose(fp); } +void drawmaps(short l) { +/* hook to be called after moving to redraw maps */ #ifdef SERGEEV -void drawmaps(short l){ _setcursortype(_NOCURSOR); if (l==1) sensor(); if (l!=2) setwnd(1); @@ -279,8 +280,8 @@ void drawmaps(short l){ lrscan(); _setcursortype(_NORMALCURSOR); } -} #endif /* SERGEEV */ +} static void makemoves(void) { int i, hitme; @@ -289,9 +290,7 @@ static void makemoves(void) { setwnd(4); #endif /* SERGEEV */ while (TRUE) { /* command loop */ -#ifdef SERGEEV drawmaps(1); -#endif /* SERGEEV */ while (TRUE) { /* get a command */ hitme = FALSE; justin = 0;