Browse Source

fixing argument passalong on Choose world

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
f533302b9c
  1. 20
      web/chunkymap.php

20
web/chunkymap.php

@ -1484,20 +1484,18 @@ function echo_chunkymap_canvas($show_player_names_enable, $decachunks_enable, $c
echo "<ul>"; echo "<ul>";
global $chunkymapdata_worlds_path; global $chunkymapdata_worlds_path;
if ($chunkymapdata_handle = opendir($chunkymapdata_worlds_path)) { if ($chunkymapdata_handle = opendir($chunkymapdata_worlds_path)) {
$append_vars="&"; $append_vars="";
if (isset($zoom)) { if (isset($x)) {
$prefix = ""; $append_vars.="&x=$x";
if (strlen($append_vars)>0 and !endsWith($append_vars,"&")) {
$prefix = "&";
} }
$append_vars.="$prefix"."&zoom=$zoom"; if (isset($z)) {
$append_vars.="&z=$z";
} }
if (isset($chunkymap_anchor_name)) { if (isset($zoom)) {
$prefix = ""; $append_vars.="&zoom=$zoom";
if (strlen($append_vars)>0) {
$prefix = "&";
} }
$append_vars.="$prefix"."#$chunkymap_anchor_name"; if (isset($chunkymap_anchor_name)) {
$append_vars.="#$chunkymap_anchor_name";
} }
global $chunkymap_anchor_name; global $chunkymap_anchor_name;
while (false !== ($this_world_name = readdir($chunkymapdata_handle))) { while (false !== ($this_world_name = readdir($chunkymapdata_handle))) {

Loading…
Cancel
Save