Added some obvious errors explanations
This commit is contained in:
@@ -57,13 +57,13 @@ void Particles::set_emitting(bool p_emitting) {
|
||||
|
||||
void Particles::set_amount(int p_amount) {
|
||||
|
||||
ERR_FAIL_COND(p_amount < 1);
|
||||
ERR_FAIL_COND_MSG(p_amount < 1, "Amount of particles cannot be smaller than 1.");
|
||||
amount = p_amount;
|
||||
VS::get_singleton()->particles_set_amount(particles, amount);
|
||||
}
|
||||
void Particles::set_lifetime(float p_lifetime) {
|
||||
|
||||
ERR_FAIL_COND(p_lifetime <= 0);
|
||||
ERR_FAIL_COND_MSG(p_lifetime <= 0, "Particles lifetime must be greater than 0.");
|
||||
lifetime = p_lifetime;
|
||||
VS::get_singleton()->particles_set_lifetime(particles, lifetime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user