simtr / PowderToypp

This repository has been moved to https://github.com/FacialTurd/The-Powder-Toy
https://github.com/FacialTurd/The-Powder-Toy
GNU General Public License v3.0
20 stars 12 forks source link

particles randomly being deleted #163

Open jacob1 opened 12 years ago

jacob1 commented 12 years ago

I was burning the 'Fallout:Barbarian Vault Boy' save, and then decided to draw some PRTI/PRTO. It then started randomly being deleted. This used to be a problem in my mod, and it's caused when a PT_NONE particle is killed, and the kill_part lets it be killed. Moving a particle after it was killed by things like VOID and BHOL (tpt does this) sometimes causes strange problems like this when there aren't enough checks in different places. Here is the result: 934473, but it doesn't continue happening later, i'll try repeating what I did to see if it always happens. Also, see this commit,changing part[i].type = PT_NONE to kill_part(i) caused the problem, and then I fixed it in the same commit. Maybe you forgot to merge that in too.

simtr commented 12 years ago

Is this issue also present in TPT?

jacob1 commented 12 years ago

Not anymore, i've only ever seen it a lot in my mod after changing those lines to kill_part(i). I think there was one problem one time that also caused it in tpt though, electrons were being put into pmap, and then after going through portals this would happen.