mirror of
https://github.com/pmret/papermario.git
synced 2024-11-09 20:42:41 +01:00
make set_music_track non-void
Still matches; its return value is used in SetMusicTrack
This commit is contained in:
parent
322932c295
commit
d9d6595581
@ -113,7 +113,7 @@ f32 dist3D(f32 ax, f32 ay, f32 az, f32 bx, f32 by, f32 bz);
|
||||
void add_vec2D_polar(f32* x, f32* y, f32 r, f32 theta);
|
||||
|
||||
s32 play_sound_at_position(s32 soundID, s32 value2, f32 posX, f32 posY, f32 posZ);
|
||||
void set_music_track(s32 playerIndex, s32 songID, s32 variation, s32 fadeOutTime, s16 volume);
|
||||
s32 set_music_track(s32 playerIndex, s32 songID, s32 variation, s32 fadeOutTime, s16 volume);
|
||||
|
||||
ScriptInstance* get_script_by_index(s32 index);
|
||||
|
||||
|
@ -57,12 +57,12 @@ s32 _set_music_track(s32 playerIndex, s32 songID, s32 variation, s32 fadeOutTime
|
||||
}
|
||||
}
|
||||
|
||||
void set_music_track(s32 playerIndex, s32 songID, s32 variation, s32 fadeOutTime, s16 volume) {
|
||||
s32 set_music_track(s32 playerIndex, s32 songID, s32 variation, s32 fadeOutTime, s16 volume) {
|
||||
MusicPlayer* musicPlayers = &gMusicPlayers;
|
||||
|
||||
musicPlayers[playerIndex].flags &= ~8;
|
||||
|
||||
_set_music_track(playerIndex, songID, variation, fadeOutTime, volume);
|
||||
return _set_music_track(playerIndex, songID, variation, fadeOutTime, volume);
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_e0b30_len_b80", func_8014A964);
|
||||
|
Loading…
Reference in New Issue
Block a user