Made several more changes to particles.cpp