bomb: Pass NULL instead of 0 to pln_damage()

Neglected in commit 820d755e5 "subs: Change pln_damage()'s parameter
noisy to string prefix", v4.3.33.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-12-27 12:47:20 +01:00
parent e312e4f8d6
commit 6cff488537

View file

@ -30,7 +30,7 @@
* Dave Pare, 1986 * Dave Pare, 1986
* Ken Stevens, 1995 * Ken Stevens, 1995
* Steve McClure, 1998-2000 * Steve McClure, 1998-2000
* Markus Armbruster, 2004-2016 * Markus Armbruster, 2004-2020
*/ */
#include <config.h> #include <config.h>
@ -426,7 +426,7 @@ ship_bomb(struct emp_qelem *list, struct sctstr *target)
} else { } else {
pr("splash\n"); pr("splash\n");
/* Bombs that miss have to land somewhere! */ /* Bombs that miss have to land somewhere! */
dam = pln_damage(&plp->plane, 'p', 0); dam = pln_damage(&plp->plane, 'p', NULL);
collateral_damage(target->sct_x, target->sct_y, dam); collateral_damage(target->sct_x, target->sct_y, dam);
continue; continue;
} }
@ -524,7 +524,7 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target)
} else { } else {
pr("thud\n"); pr("thud\n");
/* Bombs that miss have to land somewhere! */ /* Bombs that miss have to land somewhere! */
dam = pln_damage(&plp->plane, 'p', 0); dam = pln_damage(&plp->plane, 'p', NULL);
collateral_damage(target->sct_x, target->sct_y, dam); collateral_damage(target->sct_x, target->sct_y, dam);
continue; continue;
} }
@ -624,7 +624,7 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
} else { } else {
pr("thud\n"); pr("thud\n");
/* Bombs that miss have to land somewhere! */ /* Bombs that miss have to land somewhere! */
dam = pln_damage(&plp->plane, 'p', 0); dam = pln_damage(&plp->plane, 'p', NULL);
collateral_damage(target->sct_x, target->sct_y, dam); collateral_damage(target->sct_x, target->sct_y, dam);
continue; continue;
} }