X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsst.c;h=f0ee5f9b6c9403853b0fceb967bdb57ab4d846c4;hb=c94108fede4723af905386473f6435467e96e630;hp=cef3f7a8dd9ca9f9f1d40f6e4edc04fc2ee17fd7;hpb=093f7d420e9cf92fbaf751f57a199c56562ae4b5;p=super-star-trek.git diff --git a/src/sst.c b/src/sst.c index cef3f7a..f0ee5f9 100644 --- a/src/sst.c +++ b/src/sst.c @@ -403,7 +403,7 @@ static void makemoves(void) drawmaps(1); for(;;) { /* get a command */ hitme = false; - game.justin = 0; + game.justin = false; game.optime = 0.0; i = -1; chew(); @@ -460,7 +460,7 @@ static void makemoves(void) warp(false); break; case SHIELDS: // shields - doshield(1); + doshield(false); if (game.ididit) { hitme=true; game.shldchg = 0; @@ -675,7 +675,7 @@ int main(int argc, char **argv) } -void cramen(int i) +void cramen(feature i) /* print the name of an enemy */ { /* return an enemy */ @@ -709,7 +709,7 @@ char *cramlc(enum loctype key, coord w) return buf; } -void crmena(bool stars, int enemy, enum loctype key, coord w) +void crmena(bool stars, feature enemy, enum loctype key, coord w) /* print an enemy and his location */ { if (stars) proutn("***"); @@ -747,7 +747,7 @@ double Rand(void) return rand()/(1.0 + (double)RAND_MAX); } -coord iran(int size) +coord randplace(int size) /* choose a random location */ { coord w; @@ -845,7 +845,7 @@ void huh(void) prout("Beg your pardon, Captain?"); } -int isit(char *s) +bool isit(char *s) /* compares s to citem and returns true if it matches to the length of s */ { return strncasecmp(s, citem, max(1, strlen(citem))) == 0;