summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/particle.c
blob: 76d0c7097a0433a9a2a581b5166fb60934c40d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "particle.h"

/* convert a particle to a new type */
void particle_convert(particles_t *particles, const particles_conf_t *conf, particle_t *p, particle_props_t *props, particle_ops_t *ops)
{
	particle_cleanup(particles, conf, p);
	if (props) {
		*p->props = *props;
	}
	if (ops) {
		p->ops = ops;
	}
	particle_init(particles, conf, p);
}
© All Rights Reserved