The previous revision is wrong, back it out.
This commit is contained in:
parent
82a3c0d0f5
commit
021a91a779
2 changed files with 5 additions and 5 deletions
|
@ -812,7 +812,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
||||||
if (!line_of_sight(NULL, ship.shp_x, ship.shp_y, ax, ay))
|
if (!line_of_sight(NULL, ship.shp_x, ship.shp_y, ax, ay))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
*nfiring++;
|
(*nfiring)++;
|
||||||
fp = malloc(sizeof(struct flist));
|
fp = malloc(sizeof(struct flist));
|
||||||
memset(fp, 0, sizeof(struct flist));
|
memset(fp, 0, sizeof(struct flist));
|
||||||
fp->type = targ_ship;
|
fp->type = targ_ship;
|
||||||
|
@ -843,7 +843,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
||||||
nshot = MIN(nshot, ship.shp_glim);
|
nshot = MIN(nshot, ship.shp_glim);
|
||||||
if (nshot == 0)
|
if (nshot == 0)
|
||||||
continue;
|
continue;
|
||||||
*nfiring++;
|
(*nfiring)++;
|
||||||
fp = malloc(sizeof(struct flist));
|
fp = malloc(sizeof(struct flist));
|
||||||
memset(fp, 0, sizeof(struct flist));
|
memset(fp, 0, sizeof(struct flist));
|
||||||
fp->type = targ_ship;
|
fp->type = targ_ship;
|
||||||
|
@ -896,7 +896,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
||||||
dam2 = (int)landunitgun(land.lnd_effic, land.lnd_dam, gun,
|
dam2 = (int)landunitgun(land.lnd_effic, land.lnd_dam, gun,
|
||||||
land.lnd_ammo, shell);
|
land.lnd_ammo, shell);
|
||||||
|
|
||||||
*nfiring++;
|
(*nfiring)++;
|
||||||
fp = malloc(sizeof(struct flist));
|
fp = malloc(sizeof(struct flist));
|
||||||
memset(fp, 0, sizeof(struct flist));
|
memset(fp, 0, sizeof(struct flist));
|
||||||
fp->type = targ_unit;
|
fp->type = targ_unit;
|
||||||
|
@ -949,7 +949,7 @@ quiet_bigdef(int attacker, struct emp_qelem *list, natid own, natid aown,
|
||||||
I_SHELL, 1);
|
I_SHELL, 1);
|
||||||
if (gun == 0 || firing.sct_item[I_MILIT] < 5 || shell == 0)
|
if (gun == 0 || firing.sct_item[I_MILIT] < 5 || shell == 0)
|
||||||
continue;
|
continue;
|
||||||
*nfiring++;
|
(*nfiring)++;
|
||||||
fp = malloc(sizeof(struct flist));
|
fp = malloc(sizeof(struct flist));
|
||||||
memset(fp, 0, sizeof(struct flist));
|
memset(fp, 0, sizeof(struct flist));
|
||||||
fp->x = firing.sct_x;
|
fp->x = firing.sct_x;
|
||||||
|
|
|
@ -340,7 +340,7 @@ eta_calc(struct shpstr *sp, s_char *path, int *len, int *nupdates)
|
||||||
i--;
|
i--;
|
||||||
} else {
|
} else {
|
||||||
mobil += (ship_mob_scale * (float)etu_per_update);
|
mobil += (ship_mob_scale * (float)etu_per_update);
|
||||||
*nupdates++;
|
(*nupdates)++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue