Skip to content

Commit

Permalink
WIND: Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tewlwolow committed Apr 17, 2023
1 parent 300072c commit 02bcee2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 00 Core/MWSE/mods/tew/AURA/Misc/windSounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local function getWindType(cSpeed)
end
end

local function updateContitions(resetTimerFlag)
local function updateConditions(resetTimerFlag)
if resetTimerFlag
and interiorTimer
and cell.isInterior
Expand Down Expand Up @@ -114,7 +114,7 @@ local function windCheck(e)
debugLog("Uneligible weather detected. Removing sounds.")
stopWindoors()
sounds.remove { module = moduleName }
updateContitions()
updateConditions()
return
end

Expand All @@ -127,7 +127,7 @@ local function windCheck(e)
if not windType then
debugLog("Wind type is nil. Returning.")
sounds.remove { module = moduleName }
updateContitions()
updateConditions()
return
end
debugLog("Wind type: " .. windType)
Expand All @@ -139,7 +139,7 @@ local function windCheck(e)
and (common.checkCellDiff(cell, cellLast) == false)
and not (cell ~= cellLast) then
debugLog("Same conditions. Returning.")
updateContitions(true)
updateConditions(true)
return
end
if common.checkCellDiff(cell, cellLast) then
Expand Down Expand Up @@ -168,7 +168,7 @@ local function windCheck(e)
if not playInteriorWind then
debugLog("Found interior cell and playInteriorWind off. Removing sounds.")
sounds.removeImmediate { module = moduleName }
updateContitions()
updateConditions()
return
end
if common.getCellType(cell, common.cellTypesSmall) == true
Expand All @@ -186,13 +186,13 @@ local function windCheck(e)
if not table.empty(cellData.windoors) then
debugLog("Found " .. #cellData.windoors .. " windoor(s). Playing interior loops.")
playWindoors(useLast)
updateContitions(true)
updateConditions(true)
return
end
end
end
end
updateContitions()
updateConditions()
debugLog("Cell check complete.")
end

Expand Down

0 comments on commit 02bcee2

Please sign in to comment.
  翻译: