/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
natid victim, int *sublaunchp)
{
struct shpstr ship;
+ struct nukstr nuke;
struct sctstr sect;
int sublaunch = 0;
char *from;
if (chance((0.05 + (100 - pp->pln_effic) / 100.0)
* (1 - techfact(pp->pln_tech, 1.0)))) {
mpr(pp->pln_own, "KABOOOOM! Missile explodes %s!\n", from);
+ if (getnuke(nuk_on_plane(pp), &nuke)) {
+ pr("%s lost!\n", prnuke(&nuke));
+ nuke.nuk_effic = 0;
+ putnuke(nuke.nuk_uid, &nuke);
+ }
if (chance(0.33)) {
dam = pln_damage(pp, 'p', 1) / 2;
if (pp->pln_ship >= 0) {
int news_item)
{
struct plnstr *pp;
- struct plchrstr *pcp;
struct emp_qelem *intlist;
struct emp_qelem intfoo;
struct emp_qelem *qp;
pp = &ip->plane;
if (pp->pln_own != sp->sct_own)
continue;
- pcp = ip->pcp;
if (mission_pln_equip(ip, NULL, 'i') < 0) {
emp_remque(qp);
free(qp);
next = qp->q_forw;
ip = (struct plist *)qp;
pp = &ip->plane;
- pcp = ip->pcp;
if (mission_pln_equip(ip, NULL, 'i') < 0) {
emp_remque(qp);
free(qp);
qp = intlist->q_forw;
ip = (struct plist *)qp;
pp = &ip->plane;
- pcp = ip->pcp;
mpr(msl->pln_own, "%s %s launched in defense!\n",
cname(pp->pln_own), def_name);