Mercurial > hg > batmud > maputils
changeset 1817:ad3fc99c5aa9
And another parsing fix.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 30 Oct 2017 03:04:08 +0200 |
parents | 89829bd4122f |
children | 41469a2f3904 |
files | mapsearch.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Mon Oct 30 03:01:22 2017 +0200 +++ b/mapsearch.c Mon Oct 30 03:04:08 2017 +0200 @@ -491,6 +491,8 @@ for (int yc = 0; yc < res->height; yc++) { unsigned char *dp = res->data + (yc * res->scansize); + + if (offs < len && data[offs] != '\n') for (int xc = 0; xc < res->width; xc++) { if (offs < len)