//Super Sonic: musica "colors" mientras dure la transformacion
addHook("ThinkFrame", do
	for player in players.iterate
		if not (player.mo and player.mo.valid) then continue end
		if player.mo.skin == "sonic"
		and player.powers[pw_super]
		and not player.powers[pw_extralife]
		and not player.exiting
			S_ChangeMusic("colors", true, player)
			player.supermusic = true
		elseif player.supermusic
			player.supermusic = false
			//Restaurar UNA sola vez (antes se restauraba cada tick, pisando la musica de los wisps y la de fin de nivel)
			if not player.powers[pw_super] and not player.exiting
				P_RestoreMusic(player)
			end
		end
	end
end)
