Simplify calls to mpr()

mpr() does nothing when its first argument is zero.  No need to avoid
calling it in that case; remove the conditionals.
This commit is contained in:
Markus Armbruster 2008-03-22 11:04:53 +01:00
parent 4c0d843c01
commit 0a962c0380
3 changed files with 25 additions and 37 deletions

View file

@ -789,9 +789,8 @@ land_bomb(struct emp_qelem *list, struct sctstr *target)
if (dam > 100)
dam = 100;
own = land.lnd_own;
if (own != 0)
mpr(own, "%s pinpoint bombing raid did %d damage to %s\n",
cname(player->cnum), dam, prland(&land));
mpr(own, "%s pinpoint bombing raid did %d damage to %s\n",
cname(player->cnum), dam, prland(&land));
check_retreat_and_do_landdamage(&land, dam);
if (land.lnd_rflags & RET_BOMBED)