Mercurial > hg > batmud > maputils
changeset 1656:828a20694fcc
Rename a variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 12 Nov 2016 23:42:13 +0200 |
parents | f50472afd77a |
children | c2a6e11ea44c |
files | www/loc.php |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/www/loc.php Fri Oct 28 18:10:44 2016 +0300 +++ b/www/loc.php Sat Nov 12 23:42:13 2016 +0200 @@ -315,7 +315,7 @@ $locationTips = []; $totalLoc = 0; - $maxRow = 6; + $maxColumns = 6; foreach ($alphaTable as $alpha => $alphaLocs) { if (count($alphaLocs) <= 0) continue; @@ -338,7 +338,7 @@ // Print location entry printf(" <td class=\"%s\" style=\"width: %d%%\">", - $iv["continent"], (100 / $maxRow)); + $iv["continent"], (100 / $maxColumns)); echo mpGetMapLink($iv, $continentList[$iv["continent"]][4]); @@ -417,7 +417,7 @@ echo "</td>\n"; - if (++$n >= $maxRow) + if (++$n >= $maxColumns) { echo " </tr>\n"; $n = 0; @@ -426,7 +426,7 @@ if ($n > 0) { - while ($n++ < $maxRow) + while ($n++ < $maxColumns) echo " <td></td>\n"; echo " </tr>\n"; }