Merge pull request #1942 from dguzek/local-variables
change a few global Lua variables to be local
This commit is contained in:
@@ -70,7 +70,7 @@ end
|
||||
-- Parses a speed mod and returns the pair (type, number) or nil if parsing
|
||||
-- failed.
|
||||
local function CanonicalizeMod(mod)
|
||||
num = tonumber(mod:match("^(%d+.?%d*)[xX]$"))
|
||||
local num = tonumber(mod:match("^(%d+.?%d*)[xX]$"))
|
||||
if num ~= nil then
|
||||
return "x", num
|
||||
end
|
||||
|
||||
@@ -12,11 +12,11 @@ local tNotePositions = {
|
||||
}
|
||||
|
||||
function GetTapPosition( sType )
|
||||
bCategory = (sType == 'Standard') and 1 or 2
|
||||
local bCategory = (sType == 'Standard') and 1 or 2
|
||||
-- true: Normal
|
||||
-- false: Lower
|
||||
bPreference = ThemePrefs.Get("NotePosition") and "Normal" or "Lower"
|
||||
tNotePos = tNotePositions[bPreference]
|
||||
local bPreference = ThemePrefs.Get("NotePosition") and "Normal" or "Lower"
|
||||
local tNotePos = tNotePositions[bPreference]
|
||||
return tNotePos[bCategory]
|
||||
end
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ local tNotePositions = {
|
||||
}
|
||||
|
||||
function GetTapPosition( sType )
|
||||
bCategory = (sType == 'Standard') and 1 or 2
|
||||
local bCategory = (sType == 'Standard') and 1 or 2
|
||||
-- true: Normal
|
||||
-- false: Lower
|
||||
bPreference = ThemePrefs.Get("NotePosition") and "Normal" or "Lower"
|
||||
tNotePos = tNotePositions[bPreference]
|
||||
local bPreference = ThemePrefs.Get("NotePosition") and "Normal" or "Lower"
|
||||
local tNotePos = tNotePositions[bPreference]
|
||||
return tNotePos[bCategory]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user