Mercurial > ~darius > hgwebdir.cgi > paradise_client
diff detonate.c @ 3:5a977ccbc7a9 default tip
Empty changelog
author | darius |
---|---|
date | Sat, 06 Dec 1997 05:41:29 +0000 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/detonate.c Sat Dec 06 05:41:29 1997 +0000 @@ -0,0 +1,34 @@ +/* $Id: detonate.c,v 1.1.1.1 1997/12/06 05:41:29 darius Exp $ */ + +/* + * detonate.c + */ +#include "copyright.h" + +#include <stdio.h> +#include <sys/types.h> +#include "Wlib.h" +#include "defs.h" +#include "struct.h" +#include "data.h" +#include "proto.h" + +/* Detonate torp */ + +void +detmine() +{ + if (paradise) { + sendDetMineReq(-1); + } else { + register int i; + + for (i = 0; i < ntorps; i++) { + int j = i + me->p_no * ntorps; + if (torps[j].t_status == TMOVE || + torps[j].t_status == TSTRAIGHT) { + sendDetMineReq(j); + } + } + } +}