aboutsummaryrefslogtreecommitdiff
path: root/btsd.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-10-07 17:17:30 +0000
committerrodri <rgl@antares-labs.eu>2023-10-07 17:17:30 +0000
commit353cbde75a19b004ab0c5339684f33ea47ef1244 (patch)
tree0739eb09e33959e144eba0c160ad6d35e4b6300a /btsd.c
parentf0c1d251cbf8bc1213c192fc3afcc0fe566bafb5 (diff)
downloadbattleship-353cbde75a19b004ab0c5339684f33ea47ef1244.tar.gz
battleship-353cbde75a19b004ab0c5339684f33ea47ef1244.tar.bz2
battleship-353cbde75a19b004ab0c5339684f33ea47ef1244.zip
use a better random source. fix a bug with andys generating oob cell coordinates.
Diffstat (limited to 'btsd.c')
-rw-r--r--btsd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/btsd.c b/btsd.c
index b7f6016..501e624 100644
--- a/btsd.c
+++ b/btsd.c
@@ -388,7 +388,6 @@ aiproc(void *arg)
if(ct == nil)
goto Nocmd;
-// sleep(ntruerand(5000));
switch(ct->index){
case ACMlayout: ai->layout(ai, newmsg(ai->ego, nil)); break;
case ACMplay: ai->shoot(ai, newmsg(ai->ego, nil)); break;