a debug function, but no harm to leave in...
| 3722 | // a debug function, but no harm to leave in... |
| 3723 | // |
| 3724 | static void S_SetDynamicMusic_f(void) |
| 3725 | { |
| 3726 | int c = Cmd_Argc(); |
| 3727 | |
| 3728 | if ( c == 2 ) |
| 3729 | { |
| 3730 | if (bMusic_IsDynamic) |
| 3731 | { |
| 3732 | // don't need to check existance of 'explore' or 'action' music, since music wouldn't |
| 3733 | // be counted as dynamic if either were missing, but other types are optional... |
| 3734 | // |
| 3735 | if (!Q_stricmp(Cmd_Argv(1),"explore")) |
| 3736 | { |
| 3737 | S_SetDynamicMusicState( eBGRNDTRACK_EXPLORE ); |
| 3738 | return; |
| 3739 | } |
| 3740 | else |
| 3741 | if (!Q_stricmp(Cmd_Argv(1),"action")) |
| 3742 | { |
| 3743 | S_SetDynamicMusicState( eBGRNDTRACK_ACTION ); |
| 3744 | return; |
| 3745 | } |
| 3746 | else |
| 3747 | if (!Q_stricmp(Cmd_Argv(1),"silence")) |
| 3748 | { |
| 3749 | S_SetDynamicMusicState( eBGRNDTRACK_SILENCE ); |
| 3750 | return; |
| 3751 | } |
| 3752 | else |
| 3753 | if (!Q_stricmp(Cmd_Argv(1),"boss")) |
| 3754 | { |
| 3755 | if (tMusic_Info[ eBGRNDTRACK_BOSS ].bExists) |
| 3756 | { |
| 3757 | S_SetDynamicMusicState( eBGRNDTRACK_BOSS ); |
| 3758 | } |
| 3759 | else |
| 3760 | { |
| 3761 | Com_Printf("No 'boss' music defined in current dynamic set\n"); |
| 3762 | } |
| 3763 | return; |
| 3764 | } |
| 3765 | else |
| 3766 | if (!Q_stricmp(Cmd_Argv(1),"death")) |
| 3767 | { |
| 3768 | if (tMusic_Info[ eBGRNDTRACK_DEATH ].bExists) |
| 3769 | { |
| 3770 | S_SetDynamicMusicState( eBGRNDTRACK_DEATH ); |
| 3771 | } |
| 3772 | else |
| 3773 | { |
| 3774 | Com_Printf("No 'death' music defined in current dynamic set\n"); |
| 3775 | } |
| 3776 | return; |
| 3777 | } |
| 3778 | } |
| 3779 | else |
| 3780 | { |
| 3781 | DynamicMusicInfoPrint(); // print "inactive" string |
nothing calls this directly
no test coverage detected