Fixed another bug from the refactoring.

This commit is contained in:
Scott Erickson 2014-09-28 14:16:56 -07:00
parent b65b553f2d
commit 326057a816

View file

@ -365,7 +365,7 @@ module.exports = Surface = class Surface extends CocoClass
onSetCamera: (e) ->
if e.thangID
return unless target = @lankBoss.spriteFor(e.thangID)?.sprite
return unless target = @lankBoss.lankFor(e.thangID)?.sprite
else if e.pos
target = @camera.worldToSurface e.pos
else