Mercurial > hg > batmud > maputils
changeset 1819:5df0021836bc
And another adjustment to block parsing.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 30 Oct 2017 11:20:41 +0200 |
parents | 41469a2f3904 |
children | 4789d26f274f |
files | mapsearch.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Mon Oct 30 03:24:36 2017 +0200 +++ b/mapsearch.c Mon Oct 30 11:20:41 2017 +0200 @@ -495,10 +495,10 @@ if (offs < len && data[offs] != '\n') for (int xc = 0; xc < res->width; xc++) { - if (offs < len) + if (offs < len && data[offs] != '\n') dp[xc] = data[offs++]; else - goto out; + break; } while (offs < len && data[offs] != '\n') @@ -508,7 +508,6 @@ offs++; } -out: return offs == len; }