changeset 1877:14af1881e1df

Add few comments.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 04 Nov 2017 18:47:08 +0200
parents 6661014bc6c1
children a5b86414303c
files mapsearch.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mapsearch.c	Sat Nov 04 18:46:41 2017 +0200
+++ b/mapsearch.c	Sat Nov 04 18:47:08 2017 +0200
@@ -828,6 +828,7 @@
 
     mapMSG(2, "Parsed block size %d x %d\n", width, height);
 
+    // Do few basic checks for sanity
     if (width * height < 3)
     {
         *verr = "Search block pattern too small.";
@@ -840,7 +841,7 @@
         goto out;
     }
 
-    // Allocate and attempt to parse
+    // Allocate and attempt to parse the block
     if ((pattern = mapBlockAlloc(width, height)) == NULL)
         goto out;