diff options
author | rodri <rgl@antares-labs.eu> | 2023-10-09 21:01:52 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-10-09 21:01:52 +0000 |
commit | ca3289c29673b914d8ca64b08954ef0afccdf3c9 (patch) | |
tree | f187ad1da1fd0d80b1eafc838882045901e4536e /bts.c | |
parent | 3d638eb8e9f753d7766cba6efb17320597b3394b (diff) | |
download | battleship-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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); } } |