put stupid IA off before sleep, it can load 100% CPU

This commit is contained in:
gnieark 2015-12-16 00:20:59 +01:00
parent 9e910f0157
commit 518f2b409a

View File

@ -1,4 +1,5 @@
<?php <?php
/*
function place_ship_on_map($x1,$y1,$x2,$y2,$map){ function place_ship_on_map($x1,$y1,$x2,$y2,$map){
if ((($x1 <> $x2) && ($y1 <> $y2)) if ((($x1 <> $x2) && ($y1 <> $y2))
OR (!isset($map[$y1][$x1])) OR (!isset($map[$y1][$x1]))