You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Disallow setting the AudioServer's 'global_rate_scale' to a value equal or inferior to 0
(cherry picked from commit d7f2c31a05)
This commit is contained in:
committed by
Rémi Verschelde
parent
2652f6fc69
commit
5dafeb94e3
@@ -947,6 +947,7 @@ bool AudioServer::is_bus_channel_active(int p_bus, int p_channel) const {
|
||||
}
|
||||
|
||||
void AudioServer::set_global_rate_scale(float p_scale) {
|
||||
ERR_FAIL_COND(p_scale <= 0);
|
||||
|
||||
global_rate_scale = p_scale;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user