mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-19 20:20:19 +02:00
Merge pull request #1540 from 1Jamie/fix/grass-standing-overdraw
fixes #1537 #1528 also fixes feet layering of gold with grass. Unifies gen1/gen2 grass layering into a single system
This commit is contained in:
@@ -506,6 +506,12 @@ function Music.setFilterLevel(level)
|
||||
applyFilter(state.loopSource)
|
||||
end
|
||||
|
||||
function Music.setPitch(pitch)
|
||||
pitch = pitch or 1.0
|
||||
if state.source then pcall(state.source.setPitch, state.source, pitch) end
|
||||
if state.loopSource then pcall(state.loopSource.setPitch, state.loopSource, pitch) end
|
||||
end
|
||||
|
||||
-- re-apply persisted audio options (Game calls this on boot and after
|
||||
-- loading a save)
|
||||
function Music.applyOptions(opts)
|
||||
|
||||
Reference in New Issue
Block a user