ai
This commit is contained in:
parent
b6db7e8dc7
commit
d9b80b92ca
1 changed files with 563 additions and 62 deletions
|
|
@ -75,7 +75,7 @@ export abstract class PlayerBase extends CommandReceiver {
|
|||
protected findEmptyPositionForPlayer(preferredCenter: vec2): vec2 {
|
||||
let rotation = 0;
|
||||
let radius = 0;
|
||||
for (; ;) {
|
||||
for (;;) {
|
||||
const playerPosition = vec2.fromValues(
|
||||
radius * Math.cos(rotation) + preferredCenter.x,
|
||||
radius * Math.sin(rotation) + preferredCenter.y,
|
||||
|
|
|
|||
Loading…
Reference in a new issue