shithub: choc

Download patch

ref: 5ee47d86d9d2119d2a20956d23acf084532ef8b9
parent: 96721fe80d811d1c6db6146578b147b2b7085b6f
author: Turo Lamminen <[email protected]>
date: Tue Dec 4 13:46:01 EST 2018

hexen: Make S_StartSongName songLump parameter const

--- a/src/hexen/s_sound.c
+++ b/src/hexen/s_sound.c
@@ -241,7 +241,7 @@
 //
 //==========================================================================
 
-void S_StartSongName(char *songLump, boolean loop)
+void S_StartSongName(const char *songLump, boolean loop)
 {
     int lumpnum;
     int cdTrack;
--- a/src/hexen/s_sound.h
+++ b/src/hexen/s_sound.h
@@ -83,7 +83,7 @@
 void S_ResumeSound(void);
 void S_UpdateSounds(mobj_t * listener);
 void S_StartSong(int song, boolean loop);
-void S_StartSongName(char *songLump, boolean loop);
+void S_StartSongName(const char *songLump, boolean loop);
 void S_Init(void);
 void S_GetChannelInfo(SoundInfo_t * s);
 void S_SetMusicVolume(void);