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]
|
storage = @trackedPropertyValues[propIndex]
|
||||||
value = @getStoredProp propIndex, type, storage
|
value = @getStoredProp propIndex, type, storage
|
||||||
if prop is 'pos'
|
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
|
# Don't interpolate; it was probably a teleport. https://github.com/codecombat/codecombat/issues/738
|
||||||
@thang.pos = value
|
@thang.pos = value
|
||||||
else
|
else
|
||||||
|
|
Reference in a new issue