comparison detonate.c @ 3:5a977ccbc7a9 default tip

Empty changelog
author darius
date Sat, 06 Dec 1997 05:41:29 +0000
parents
children
comparison
equal deleted inserted replaced
2:fba0b6e6cdc7 3:5a977ccbc7a9
1 /* $Id: detonate.c,v 1.1.1.1 1997/12/06 05:41:29 darius Exp $ */
2
3 /*
4 * detonate.c
5 */
6 #include "copyright.h"
7
8 #include <stdio.h>
9 #include <sys/types.h>
10 #include "Wlib.h"
11 #include "defs.h"
12 #include "struct.h"
13 #include "data.h"
14 #include "proto.h"
15
16 /* Detonate torp */
17
18 void
19 detmine()
20 {
21 if (paradise) {
22 sendDetMineReq(-1);
23 } else {
24 register int i;
25
26 for (i = 0; i < ntorps; i++) {
27 int j = i + me->p_no * ntorps;
28 if (torps[j].t_status == TMOVE ||
29 torps[j].t_status == TSTRAIGHT) {
30 sendDetMineReq(j);
31 }
32 }
33 }
34 }