mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Tweaked updateZoom.
This commit is contained in:
parent
68567c1366
commit
cf0e1d305b
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ module.exports = class Camera extends CocoClass
|
|||
|
||||
updateZoom: (force=false) ->
|
||||
# Update when we're focusing on a Thang, tweening, or forcing it, unless we're locked
|
||||
return if @locked or (not force and not @newTarget and not @target?.name)
|
||||
return if (not force) and (@locked or (not @newTarget and not @target?.name))
|
||||
if @newTarget
|
||||
t = @tweenProgress
|
||||
@zoom = @oldZoom + t * (@newZoom - @oldZoom)
|
||||
|
|
Loading…
Reference in a new issue