forked from JailDoctor/JailAudio
- [FIX] Che, se m'havia colat un error
This commit is contained in:
@@ -97,7 +97,7 @@ Uint32 JA_UpdateCallback(void *userdata, SDL_TimerID timerID, Uint32 interval)
|
|||||||
if (time > (fade_start_time+fade_duration)) {
|
if (time > (fade_start_time+fade_duration)) {
|
||||||
fading = false;
|
fading = false;
|
||||||
JA_StopMusic();
|
JA_StopMusic();
|
||||||
return;
|
return 30;
|
||||||
} else {
|
} else {
|
||||||
const int time_passed = time - fade_start_time;
|
const int time_passed = time - fade_start_time;
|
||||||
const float percent = (float)time_passed / (float)fade_duration;
|
const float percent = (float)time_passed / (float)fade_duration;
|
||||||
|
|||||||
Reference in New Issue
Block a user