Fix an assortment of compiler warnings.

A few potential bugs were removed in the process.  Much code cleanup
remains to be done.
This commit is contained in:
John "Elwin" Edwards 2019-11-22 21:18:27 -05:00
parent de95b19cee
commit 7d459d7d36
47 changed files with 608 additions and 591 deletions

View file

@ -38,18 +38,18 @@ static struct init_weps {
int iw_launch;
int iw_flags;
} init_dam[MAXWEAPONS] = {
"2d4", "1d3", NONE, 0, /* Mace */
"1d10", "1d2", NONE,0, /* Long sword */
"1d1", "1d1", NONE, 0, /* Bow */
"1d1", "1d6", BOW, ISMANY|ISMISL, /* Arrow */
"1d6", "1d4", NONE, ISMISL, /* Dagger */
"1d2", "1d4", SLING,ISMANY|ISMISL, /* Rock */
"3d6", "1d2", NONE, 0, /* 2h sword */
"0d0", "0d0", NONE, 0, /* Sling */
"1d1", "1d3", NONE, ISMANY|ISMISL, /* Dart */
"1d1", "1d1", NONE, 0, /* Crossbow */
"1d2", "1d10", CROSSBOW, ISMANY|ISMISL,/* Crossbow bolt */
"1d8", "1d6", NONE, ISMISL, /* Spear */
{ "2d4", "1d3", NONE, 0 }, /* Mace */
{ "1d10", "1d2", NONE,0 }, /* Long sword */
{ "1d1", "1d1", NONE, 0 }, /* Bow */
{ "1d1", "1d6", BOW, ISMANY|ISMISL }, /* Arrow */
{ "1d6", "1d4", NONE, ISMISL }, /* Dagger */
{ "1d2", "1d4", SLING,ISMANY|ISMISL }, /* Rock */
{ "3d6", "1d2", NONE, 0 }, /* 2h sword */
{ "0d0", "0d0", NONE, 0 }, /* Sling */
{ "1d1", "1d3", NONE, ISMANY|ISMISL }, /* Dart */
{ "1d1", "1d1", NONE, 0 }, /* Crossbow */
{ "1d2", "1d10", CROSSBOW, ISMANY|ISMISL }, /* Crossbow bolt */
{ "1d8", "1d6", NONE, ISMISL } /* Spear */
};
/*