view 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 source

/* $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);
	    }
	}
    }
}