- Fixed: Markers stuck in inverted mode.

This commit is contained in:
rokiyo
2010-11-02 13:19:37 +00:00
parent ad69dbee24
commit 7609b37812

View File

@ -1474,7 +1474,7 @@ end
function IceBarElement.prototype:PositionMarker(idx, pos) function IceBarElement.prototype:PositionMarker(idx, pos)
assert(idx > 0 and #self.Markers >= idx and self.Markers[idx] and self.Markers[idx].bar and #self.moduleSettings.markers >= idx, assert(idx > 0 and #self.Markers >= idx and self.Markers[idx] and self.Markers[idx].bar and #self.moduleSettings.markers >= idx,
"Bad marker passed to PositionMarker. idx="..idx..", #Markers="..#self.Markers..", #settings.markers="..#self.moduleSettings.markers) "Bad marker passed to PositionMarker. idx="..idx..", #Markers="..#self.Markers..", #settings.markers="..#self.moduleSettings.markers)
if self.moduleSettings.inverse then if (self.moduleSettings.inverse == "INVERSE") then
pos = pos * -1 pos = pos * -1
end end
local coordPos = 0.5 + pos local coordPos = 0.5 + pos