diff rogue4/weapons.c @ 300:0250220d8cdd

Fix an assortment of compiler warnings. A few potential bugs were removed in the process. Much code cleanup remains to be done.
author John "Elwin" Edwards
date Fri, 22 Nov 2019 21:18:27 -0500
parents 1b73a8641b37
children e52a8a7ad4c5
line wrap: on
line diff
--- a/rogue4/weapons.c	Sun Feb 11 15:37:33 2018 -0500
+++ b/rogue4/weapons.c	Fri Nov 22 21:18:27 2019 -0500
@@ -23,16 +23,16 @@
     char iw_launch;	/* Launching weapon */
     int iw_flags;	/* Miscellaneous flags */
 } init_dam[MAXWEAPONS] = {
-    "2d4",	"1d3",	NONE, 		0,		/* Mace */
-    "3d4",	"1d2",	NONE,		0,		/* Long sword */
-    "1d1",	"1d1",	NONE,		0,		/* Bow */
-    "1d1",	"2d3",	BOW,		ISMANY|ISMISL,	/* Arrow */
-    "1d6",	"1d4",	NONE,		ISMISL,		/* Dagger */
-    "4d4",	"1d2",	NONE,		0,		/* 2h sword */
-    "1d1",	"1d3",	NONE,		ISMANY|ISMISL,	/* Dart */
-    "1d1",	"1d1",	NONE,		0,		/* Crossbow */
-    "1d2",	"2d5",	CROSSBOW,	ISMANY|ISMISL,	/* Crossbow bolt */
-    "2d3",	"1d6",	NONE,		ISMISL,		/* Spear */
+    { "2d4",	"1d3",	NONE, 		0 },		/* Mace */
+    { "3d4",	"1d2",	NONE,		0 },		/* Long sword */
+    { "1d1",	"1d1",	NONE,		0 },		/* Bow */
+    { "1d1",	"2d3",	BOW,		ISMANY|ISMISL },/* Arrow */
+    { "1d6",	"1d4",	NONE,		ISMISL },	/* Dagger */
+    { "4d4",	"1d2",	NONE,		0 },		/* 2h sword */
+    { "1d1",	"1d3",	NONE,		ISMANY|ISMISL },/* Dart */
+    { "1d1",	"1d1",	NONE,		0 },		/* Crossbow */
+    { "1d2",	"2d5",	CROSSBOW,	ISMANY|ISMISL },/* Crossbow bolt */
+    { "2d3",	"1d6",	NONE,		ISMISL }	/* Spear */
 };
 
 /*