fix position check

as programs get bigger the distance gets bigger
needs better approach
This commit is contained in:
Torsten Ruger 2015-11-15 00:38:23 +02:00
parent 9602acf3d2
commit 1633bf1289

View File

@ -60,7 +60,7 @@ class Symbol
# resetting of position used to be error, but since relink and dynamic instruction size it is ok. # resetting of position used to be error, but since relink and dynamic instruction size it is ok.
# in measures (of 32) # in measures (of 32)
old = cache_positions[self] old = cache_positions[self]
if old != nil and ((old - pos).abs > 2000) if old != nil and ((old - pos).abs > 20000)
raise "position set again #{pos}!=#{old} for #{self}" raise "position set again #{pos}!=#{old} for #{self}"
end end
cache_positions[self] = pos cache_positions[self] = pos