mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- Enabled music in windowed mode (was missing in windowed mode)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1783 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+12
-8
@@ -99,8 +99,9 @@ void MusicStopCallback( void *pData );
|
||||
//********************************************************************************
|
||||
BOOLEAN MusicPlay(UINT32 uiNum)
|
||||
{
|
||||
if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
return FALSE;
|
||||
// WANNE: We want music in windowed mode
|
||||
//if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
// return FALSE;
|
||||
|
||||
SOUNDPARMS spParms;
|
||||
|
||||
@@ -144,8 +145,9 @@ BOOLEAN MusicSetVolume(UINT32 uiVolume)
|
||||
{
|
||||
INT32 uiOldMusicVolume = uiMusicVolume;
|
||||
|
||||
if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
return FALSE;
|
||||
// WANNE: We want music in windowed mode
|
||||
//if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
// return FALSE;
|
||||
|
||||
|
||||
uiMusicVolume=__min(uiVolume, 127);
|
||||
@@ -198,8 +200,9 @@ UINT32 MusicGetVolume(void)
|
||||
//********************************************************************************
|
||||
BOOLEAN MusicStop(void)
|
||||
{
|
||||
if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
return(FALSE);
|
||||
// WANNE: We want music in windowed mode
|
||||
//if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
// return(FALSE);
|
||||
|
||||
|
||||
if(uiMusicHandle!=NO_SAMPLE)
|
||||
@@ -265,8 +268,9 @@ BOOLEAN MusicPoll( BOOLEAN fForce )
|
||||
{
|
||||
//DebugMsg (TOPIC_JA2,DBG_LEVEL_3,"MusicPoll");
|
||||
|
||||
if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
return(TRUE);
|
||||
// WANNE: We want music in windowed mode
|
||||
//if( 1==iScreenMode ) /* on Windowed mode, skip the music? was coded for WINDOWED_MODE that way...*/
|
||||
//return(TRUE);
|
||||
|
||||
INT32 iVol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user