@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @param Room $room |
| 21 | - * @param array $onlinePlayerIds |
|
| 21 | + * @param integer[] $onlinePlayerIds |
|
| 22 | 22 | * @param array $excludePlayerIds |
| 23 | 23 | * @return Human[] |
| 24 | 24 | */ |
@@ -34,12 +34,12 @@ |
||
| 34 | 34 | $map = []; |
| 35 | 35 | |
| 36 | 36 | for ($y = $currentY - $this->mapRadius, $relativeY = 1, $relativeX = 1; |
| 37 | - $y <= $currentY + $this->mapRadius; |
|
| 38 | - $y++, $relativeY++, $relativeX = 1) { |
|
| 37 | + $y <= $currentY + $this->mapRadius; |
|
| 38 | + $y++, $relativeY++, $relativeX = 1) { |
|
| 39 | 39 | |
| 40 | 40 | for ($x = $currentX - $this->mapRadius; |
| 41 | - $x <= $currentX + $this->mapRadius; |
|
| 42 | - $x++, $relativeX++) { |
|
| 41 | + $x <= $currentX + $this->mapRadius; |
|
| 42 | + $x++, $relativeX++) { |
|
| 43 | 43 | |
| 44 | 44 | // пропуск центра карты, комнаты где находится персонаж |
| 45 | 45 | if ($relativeY == 3 && $relativeX == 3) { |