From ca3289c29673b914d8ca64b08954ef0afccdf3c9 Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 9 Oct 2023 21:01:52 +0000 Subject: replace the andy layout algorithm for a better one. --- bts.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bts.c') diff --git a/bts.c b/bts.c index 8b0cbc4..9a4cec6 100644 --- a/bts.c +++ b/bts.c @@ -641,7 +641,6 @@ lmb(Mousectl *mc) audio_play(playlist[SCANNON]); cell = toboard(&alienboard, mc->xy); - /* TODO check if we already shot at that cell */ cell2coords(buf, sizeof buf, cell); if(gettile(&alienboard, cell) == Twater){ chanprint(egress, "shoot %s\n", buf); @@ -986,7 +985,7 @@ void soundproc(void *) { Biobuf *aout; - uchar adata[512]; + uchar buf[1024]; threadsetname("soundproc"); @@ -995,8 +994,8 @@ soundproc(void *) sysfatal("Bopen: %r"); for(;;){ - audio_process((void*)adata, sizeof(adata)/2); - Bwrite(aout, adata, sizeof adata); + audio_process((void*)buf, sizeof(buf)/2); + Bwrite(aout, buf, sizeof buf); } } -- cgit v1.2.3