Skip to content

Commit

Permalink
Fix logic in GoalEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Applegate committed Dec 1, 2012
1 parent 19b5b56 commit 22b396f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/coffee/models/GoalEntity.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ define ['cs!models/StaticEntity', 'image!/img/level-asset-goal.png'], (StaticEnt
x2 = pos.x + offsetX
y2 = pos.y + offsetY - .2
targets = @world.find x1, y1, x2, y2
return unless targets.length > 1
return unless targets.length > 0

# If one of the entities at the goal is the player,
# trigger the level change event on the canvas
Expand Down

0 comments on commit 22b396f

Please sign in to comment.