# HG changeset patch # User Matti Hamalainen # Date 1566389277 -10800 # Node ID 5933039ce1fd071344b523cff9add8676d3e69b1 # Parent c7d0e5200c4f1ec8e13e9295c94cf3fa3261c571 Rename some function variables and argument. diff -r c7d0e5200c4f -r 5933039ce1fd mkspecial.c --- 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; } }