Mercurial > hg > batmud > maputils
changeset 2611:54dec981e678
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 16 Feb 2024 15:33:29 +0200 |
parents | 70524cd664f5 |
children | 268ac82d0305 |
files | src/mkloc.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mkloc.c Fri Feb 16 15:12:57 2024 +0200 +++ b/src/mkloc.c Fri Feb 16 15:33:29 2024 +0200 @@ -1312,26 +1312,26 @@ // Read location info for (int i = 0; i <= noptLocFiles; i++) { - LocFileInfo *f = &optLocFiles[i]; + LocFileInfo *fp = &optLocFiles[i]; - if (optOutput == OUTFMT_GMAPS && f->continent == NULL) + if (optOutput == OUTFMT_GMAPS && fp->continent == NULL) { THERR("Required continent name not set for #%d '%s'.\n", - i, f->filename); + i, fp->filename); res = -3; goto out; } - THMSG(2, "Reading location info '%s'\n", f->filename); - if ((inFile = fopen(f->filename, "rb")) == NULL) + THMSG(2, "Reading location info '%s'\n", fp->filename); + if ((inFile = fopen(fp->filename, "rb")) == NULL) { THERR("Could not open location file '%s' for reading.\n", - f->filename); + fp->filename); res = -3; goto out; } - if (!locParseLocStream(inFile, f, &worldLoc, f->xoffs, f->yoffs)) + if (!locParseLocStream(inFile, fp, &worldLoc, fp->xoffs, fp->yoffs)) { res = -4; goto out;