mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'master' of https://git.magicalgirl.moe/STJr/SRB2Internal.git into kartport_bugfixes
This commit is contained in:
commit
ac0ca69456
1 changed files with 2 additions and 1 deletions
|
|
@ -878,10 +878,11 @@ boolean I_SetSongSpeed(float speed)
|
||||||
#ifdef HAVE_OPENMPT
|
#ifdef HAVE_OPENMPT
|
||||||
if (openmpt_mhandle)
|
if (openmpt_mhandle)
|
||||||
{
|
{
|
||||||
|
char modspd[13];
|
||||||
|
|
||||||
if (speed > 4.0f)
|
if (speed > 4.0f)
|
||||||
speed = 4.0f; // Limit this to 4x to prevent crashing, stupid fix but... ~SteelT 27/9/19
|
speed = 4.0f; // Limit this to 4x to prevent crashing, stupid fix but... ~SteelT 27/9/19
|
||||||
|
|
||||||
char modspd[8];
|
|
||||||
sprintf(modspd, "%g", speed);
|
sprintf(modspd, "%g", speed);
|
||||||
openmpt_module_ctl_set(openmpt_mhandle, "play.tempo_factor", modspd);
|
openmpt_module_ctl_set(openmpt_mhandle, "play.tempo_factor", modspd);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue