diff options
Diffstat (limited to 'sail/dr_2.c')
-rw-r--r-- | sail/dr_2.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sail/dr_2.c b/sail/dr_2.c index 439c3218..ad0a5e4d 100644 --- a/sail/dr_2.c +++ b/sail/dr_2.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_2.c,v 1.10 1999/09/08 21:17:58 jsm Exp $ */ +/* $NetBSD: dr_2.c,v 1.11 1999/09/30 18:01:33 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dr_2.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dr_2.c,v 1.10 1999/09/08 21:17:58 jsm Exp $"); +__RCSID("$NetBSD: dr_2.c,v 1.11 1999/09/30 18:01:33 jsm Exp $"); #endif #endif /* not lint */ @@ -64,7 +64,7 @@ thinkofgrapples() if (range(sp, sq) != 1) continue; if (grappled2(sp, sq)) - if (toughmelee(sp, sq, 0, 0)) + if (is_toughmelee(sp, sq, 0, 0)) ungrap(sp, sq); else grap(sp, sq); @@ -128,7 +128,7 @@ prizecheck() } int -strend(str) +str_end(str) const char *str; { const char *p; @@ -243,7 +243,7 @@ char command[], temp[]; char st[4]; #define rakeyou (gunsbear(f, t) && !gunsbear(t, f)) - if ((n = strend(temp)) < '1' || n > '9') + if ((n = str_end(temp)) < '1' || n > '9') for (n = 1; vma - n >= 0; n++) { (void) sprintf(st, "%d", n); (void) strcat(temp, st); @@ -256,7 +256,7 @@ char command[], temp[]; dir, f, t, high, rakeme); rmend(temp); } - if ((ma > 0 && ta > 0 && (n = strend(temp)) != 'l' && n != 'r') || !strlen(temp)) { + if ((ma > 0 && ta > 0 && (n = str_end(temp)) != 'l' && n != 'r') || !strlen(temp)) { (void) strcat(temp, "r"); new = score(temp, f, t, rakeme); if (new > *high && (!rakeme || (gunsbear(f, t) && !gunsbear(t, f)))) { @@ -266,7 +266,7 @@ char command[], temp[]; try(command, temp, ma-1, ta-1, af, min(ma-1, maxmove(f, (dir == 8 ? 1 : dir+1), 0)), (dir == 8 ? 1 : dir+1),f,t,high,rakeme); rmend(temp); } - if ((ma > 0 && ta > 0 && (n = strend(temp)) != 'l' && n != 'r') || !strlen(temp)){ + if ((ma > 0 && ta > 0 && (n = str_end(temp)) != 'l' && n != 'r') || !strlen(temp)){ (void) strcat(temp, "l"); new = score(temp, f, t, rakeme); if (new > *high && (!rakeme || (gunsbear(f, t) && !gunsbear(t, f)))){ |