aboutsummaryrefslogtreecommitdiff
path: root/bts.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-10-09 21:01:52 +0000
committerrodri <rgl@antares-labs.eu>2023-10-09 21:01:52 +0000
commitca3289c29673b914d8ca64b08954ef0afccdf3c9 (patch)
treef187ad1da1fd0d80b1eafc838882045901e4536e /bts.c
parent3d638eb8e9f753d7766cba6efb17320597b3394b (diff)
downloadbattleship-ca3289c29673b914d8ca64b08954ef0afccdf3c9.tar.gz
battleship-ca3289c29673b914d8ca64b08954ef0afccdf3c9.tar.bz2
battleship-ca3289c29673b914d8ca64b08954ef0afccdf3c9.zip
replace the andy layout algorithm for a better one.
Diffstat (limited to 'bts.c')
-rw-r--r--bts.c7
1 files changed, 3 insertions, 4 deletions
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);
}
}