Skip to content

Commit

Permalink
Fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
NullSoldier committed Jan 24, 2015
1 parent 0812265 commit 0be239f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/common/ai/avoidai.ts
Expand Up @@ -10,7 +10,7 @@ class AvoidPlayerAI extends PlayerAI {

update(room : Room) : void {
// TODO(strager): Smarter algorithm.
var nearestEnemy = this.nearestEnemy(players)
var nearestEnemy = this.nearestEnemy(room.players)
if (nearestEnemy === null) {
return
}
Expand Down
4 changes: 2 additions & 2 deletions src/common/ai/followai.ts
Expand Up @@ -8,8 +8,8 @@ class FollowNearestPlayerAI extends PlayerAI {
this.minApproachDistance = 100
}

update(players : Array<Player>) : void {
var nearestEnemy = this.nearestEnemy(players)
update(room : Room) : void {
var nearestEnemy = this.nearestEnemy(room.players)
if (nearestEnemy === null) {
return
}
Expand Down

0 comments on commit 0be239f

Please sign in to comment.