Mercurial > hg > batmud > maputils
changeset 1798:76dce42776f8
Set center coordinates to zero by default.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 29 Oct 2017 21:12:06 +0200 |
parents | bd0e0b62c8f9 |
children | 895606ee727a |
files | mapsearch.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mapsearch.c Sun Oct 29 21:10:45 2017 +0200 +++ b/mapsearch.c Sun Oct 29 21:12:06 2017 +0200 @@ -527,6 +527,7 @@ y0 = (block->height * tolerance) / 100, y1 = (block->height * (100 - tolerance)) / 100; + *cx = *cy = 0; for (int yc = 0; yc < block->height; yc++) { unsigned char *dp = block->data + (yc * block->scansize);