Code: Alles auswählen
$pixelwidth = $width / (1.8 * $board_config['gmap_width']);
$pixelheight = $height / (1.8 * $board_config['gmap_height']);
$criticaldistance = sqrt(pow(15 * $pixelwidth,2) + pow(15 * $pixelheight, 2)); // the distance in ltdlng where points would intersect each other
Wenn Du da ein Division by Zero bekommst, dann ist $board_config['gmap_width'] und $board_config['gmap_height'] auf 0 gesetzt.
Kann es sein, dass Du im ACP in den Atlas Mod, die Kartengröße noch auf 0 und 0 stehen hast? Ich hab da 640x700 drin.