aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bts.c b/bts.c
index ca951dc..80aad06 100644
--- a/bts.c
+++ b/bts.c
@@ -643,8 +643,10 @@ lmb(Mousectl *mc)
cell = toboard(&alienboard, mc->xy);
/* TODO check if we already shot at that cell */
cell2coords(buf, sizeof buf, cell);
- chanprint(egress, "shoot %s\n", buf);
- lastshot = cell;
+ if(gettile(&alienboard, cell) == Twater){
+ chanprint(egress, "shoot %s\n", buf);
+ lastshot = cell;
+ }
break;
}
}