changeset 2084:5933039ce1fd

Rename some function variables and argument.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 21 Aug 2019 15:07:57 +0300
parents c7d0e5200c4f
children 9ce9ccc8f212
files mkspecial.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mkspecial.c	Wed Aug 21 15:07:11 2019 +0300
+++ b/mkspecial.c	Wed Aug 21 15:07:57 2019 +0300
@@ -238,14 +238,14 @@
 
 BOOL adjustBlockCenter(MapBlock *block, const char centerCh)
 {
-    for (int y = 0; y < block->height; y++)
-    for (int x = 0; x < block->width; x++)
+    for (int yc = 0; yc < block->height; yc++)
+    for (int xc = 0; xc < block->width; xc++)
     {
-        int c = block->data[(y * block->scansize) + x];
-        if (c == centerCh)
+        int ch = block->data[(yc * block->scansize) + xc];
+        if (ch == centerCh)
         {
-            block->xc -= x;
-            block->yc -= y;
+            block->xc -= xc;
+            block->yc -= yc;
             return TRUE;
         }
     }