Fixed another bug from the refactoring.
This commit is contained in:
parent
b65b553f2d
commit
326057a816
1 changed files with 1 additions and 1 deletions
|
@ -365,7 +365,7 @@ module.exports = Surface = class Surface extends CocoClass
|
||||||
|
|
||||||
onSetCamera: (e) ->
|
onSetCamera: (e) ->
|
||||||
if e.thangID
|
if e.thangID
|
||||||
return unless target = @lankBoss.spriteFor(e.thangID)?.sprite
|
return unless target = @lankBoss.lankFor(e.thangID)?.sprite
|
||||||
else if e.pos
|
else if e.pos
|
||||||
target = @camera.worldToSurface e.pos
|
target = @camera.worldToSurface e.pos
|
||||||
else
|
else
|
||||||
|
|
Reference in a new issue