Hello and thanks for your help so far,
I took your code and put it in like this:
p.skill_a += 1 * time_step;
if (p.skill_a >= 1) {p.lifespan = 0;}
if (p.lifespan == 0) {printf("Lifespan is Zero");}
I used skill_a so I dont get confused while experimenting and also put in a printf to see if what the lifespan actually is.
I get a messagebox every frame, so I am very sure that the lifespan actually is 0. But still my particles do not disappear. When I press F11 I can see the counter going up endlessly. Could there be any mistake in the code?