From 4ff857507e9e61a2733b2f23412d0118daad9612 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 12 Feb 2006 23:01:47 +0000 Subject: [PATCH] Doc fix. --- src/lib/common/bestpath.c | 4 ---- src/lib/common/file.c | 2 +- src/lib/subs/pr.c | 3 +-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/lib/common/bestpath.c b/src/lib/common/bestpath.c index 38aa4ead..15633693 100644 --- a/src/lib/common/bestpath.c +++ b/src/lib/common/bestpath.c @@ -34,7 +34,6 @@ /* * IMPORTANT: These routines are very selectively used in the server. * - * "bestpath" is now obsolete (and removed) * "bestownedpath" is only used to determine paths for ships and planes. * * Callers should not be calling these directly anymore. They should use @@ -117,9 +116,6 @@ int dy[6] = { 0, -1, -1, 0, 1, 1 }; * but we don't want to allocate each and every time, since that * would be slow. And, since world size only changes at init * time, we can do this safely. - * We also share these buffers between "bestpath" and "bestownedpath" - * since you can never be in both functions at the same time. If that - * did happen, we'd already be so broken that it won't matter. */ static unsigned int *mapbuf = (unsigned int *)0; static unsigned int **mapindex = (unsigned int **)0; diff --git a/src/lib/common/file.c b/src/lib/common/file.c index fcf84a4a..48262417 100644 --- a/src/lib/common/file.c +++ b/src/lib/common/file.c @@ -101,7 +101,7 @@ ef_open(int type, int how) /* allocate cache */ if (ep->flags & EFF_STATIC) { - /* ep->cache already points to space for e->csize elements */ + /* ep->cache already points to space for ep->csize elements */ if (how & EFF_MEM) { if (ep->fids > ep->csize) { logerror("Can't open %s: file larger than %d bytes", diff --git a/src/lib/subs/pr.c b/src/lib/subs/pr.c index 57293301..efa6b723 100644 --- a/src/lib/subs/pr.c +++ b/src/lib/subs/pr.c @@ -114,8 +114,7 @@ uprnf(char *buf) * arguments. It is assumed to be already user text. Plain ASCII and * text received from the same player are fine, for anything else the * caller has to deal with output filtering. - * If a partial line with different id is buffered, terminate it with - * a newline first. + * If a partial line is buffered, terminate it with a newline first. */ void pr_id(struct player *p, int id, char *format, ...)