Changeset 25592


Ignore:
Timestamp:
01/10/14 14:50:28 (9 years ago)
Author:
obi
Message:

switch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r25591 r25592  
    53265326
    53275327        if(value == 2)
    5328         {
    5329                 if(status.mcaktiv == 1)
    5330                         set_player_sound(0);
    5331                 else
    5332                         set_player_sound(1);
    5333                
     5328        {       
     5329                // disable sound
     5330                set_player_sound(2);
     5331
    53345332                tmpvol = getvol();
    53355333                tmpvol = tmpvol * 50 / 100;
     
    53395337        else
    53405338        {
    5341                 // disable sound
    5342                 set_player_sound(2);
    53435339                mutedev = getconfig("mutedev", NULL);
    53445340
    53455341                if(mutedev != NULL)
    53465342                {
     5343                        if(status.mcaktiv == 1)
     5344                                set_player_sound(0);
     5345                        else
     5346                                set_player_sound(1);
     5347                       
    53475348                        debug(100, "set %s to %d", mutedev, value);
    53485349                        //if(status.volautochangevalue != 0 && value == 0) setvol(getvol());
Note: See TracChangeset for help on using the changeset viewer.