[teeworlds] Re: Play the ''flag returned'' sound when flag hit death tile

  • From: "Magnus Auvinen" <magnus.auvinen@xxxxxxxxx>
  • To: teeworlds@xxxxxxxxxxxxx
  • Date: Wed, 14 Jan 2009 23:49:53 +0100

hi,

Added it to my local copy. Will commit later on when I can.

Thanks for the patch.

.matricks

On Wed, Jan 14, 2009 at 8:13 PM, Nicolas Cavallari <batchman@xxxxxxx> wrote:
> on ctf5, when a flag falls down the map (after the flag holder is killed),
>  there is no sound telling the flag was reset. This patch fixes that
>
> Index: ctf.cpp
> ===================================================================
> --- ctf.cpp     (revision 1841)
> +++ ctf.cpp     (copie de travail)
> @@ -77,6 +77,7 @@
>                if(col_get((int)f->pos.x, (int)f->pos.y)&COLFLAG_DEATH)
>                {
>                        f->reset();
> +                       game.create_sound_global(SOUND_CTF_RETURN);
>                        continue;
>                }
>
> @@ -188,6 +189,25 @@
>        }
>  }
>
>
>
>

Other related posts: