hedgewars/uSound.pas
changeset 14390 e5eee50bd457
parent 14389 07c9bdc45115
child 14598 62dea281e4d5
equal deleted inserted replaced
14389:07c9bdc45115 14390:e5eee50bd457
   488             GetFallbackV := sndNooo
   488             GetFallbackV := sndNooo
   489         else
   489         else
   490             GetFallbackV := sndUhOh
   490             GetFallbackV := sndUhOh
   491     else if (snd in [sndDrat, sndBugger]) then
   491     else if (snd in [sndDrat, sndBugger]) then
   492         GetFallbackV := sndStupid
   492         GetFallbackV := sndStupid
   493     else if (snd in [sndGonnaGetYou, sndCutItOut, sndLeaveMeAlone]) then
   493     else if (snd in [sndGonnaGetYou, sndIllGetYou, sndJustYouWait, sndCutItOut, sndLeaveMeAlone]) then
   494         GetFallbackV := sndRegret
   494         GetFallbackV := sndRegret
   495     else if (snd in [sndOhDear, sndSoLong]) then
   495     else if (snd in [sndOhDear, sndSoLong]) then
   496         GetFallbackV := sndByeBye
   496         GetFallbackV := sndByeBye
   497     else if (snd = sndWhatThe) then
   497     else if (snd in [sndWhatThe, sndUhOh]) then
   498         GetFallbackV := sndNooo
   498         GetFallbackV := sndNooo
   499     else if (snd = sndRunAway) then
   499     else if (snd = sndRunAway) then
   500         GetFallbackV := sndOops
   500         GetFallbackV := sndOops
   501     else if (snd = sndThisOneIsMine) then
   501     else if (snd = sndThisOneIsMine) then
   502         GetFallbackV := sndReinforce
   502         GetFallbackV := sndReinforce
   503     else if (snd in [sndAmazing, sndBrilliant, sndExcellent]) then
   503     else if (snd in [sndAmazing, sndBrilliant, sndExcellent]) then
   504         GetFallbackV := sndEnemyDown
   504         GetFallbackV := sndEnemyDown
       
   505     else if (snd = sndPoisonCough) then
       
   506         GetFallbackV := sndPoisonMoan
       
   507     else if (snd = sndPoisonMoan) then
       
   508         GetFallbackV := sndPoisonCough
       
   509     else if (snd = sndFlawless) then
       
   510         GetFallbackV := sndVictory
       
   511     else if (snd = sndSameTeam) then
       
   512         GetFallbackV := sndTraitor
       
   513     else if (snd = sndMelon) then
       
   514         GetFallbackV := sndCover
       
   515     // sndHmm is used for enemy turn start, so sndHello is an "okay" replacement
       
   516     else if (snd = sndHmm) then
       
   517         GetFallbackV := sndHello
   505     else
   518     else
   506         GetFallbackV := sndNone;
   519         GetFallbackV := sndNone;
   507 end;
   520 end;
   508 
   521 
   509 function PlaySound(snd: TSound): boolean;
   522 function PlaySound(snd: TSound): boolean;