mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Fix arrows zooming in from (0, 0) in real-time playback mode
This commit is contained in:
parent
252b9a0448
commit
c0e1f5fc1c
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ module.exports = class ThangState
|
|||
storage = @trackedPropertyValues[propIndex]
|
||||
value = @getStoredProp propIndex, type, storage
|
||||
if prop is 'pos'
|
||||
if @thang.teleport and @thang.pos.distanceSquared(value) > 900
|
||||
if (@thang.teleport and @thang.pos.distanceSquared(value) > 900) or (@thang.pos.x is 0 and @thang.pos.y is 0)
|
||||
# Don't interpolate; it was probably a teleport. https://github.com/codecombat/codecombat/issues/738
|
||||
@thang.pos = value
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue