Mercurial > hg > early-roguelike
comparison xrogue/weapons.c @ 311:28e22fb35989
Fix one more batch of compiler warnings.
A few of these were potential bugs.
author | John "Elwin" Edwards |
---|---|
date | Tue, 04 May 2021 21:03:47 -0400 |
parents | f54901b9c39b |
children |
comparison
equal
deleted
inserted
replaced
310:827441d05b3e | 311:28e22fb35989 |
---|---|
196 * init_weapon: | 196 * init_weapon: |
197 * Set up the initial goodies for a weapon | 197 * Set up the initial goodies for a weapon |
198 */ | 198 */ |
199 | 199 |
200 void | 200 void |
201 init_weapon(struct object *weap, char type) | 201 init_weapon(struct object *weap, int type) |
202 { | 202 { |
203 register struct init_weps *iwp; | 203 register struct init_weps *iwp; |
204 | 204 |
205 iwp = &weaps[type]; | 205 iwp = &weaps[type]; |
206 strcpy(weap->o_damage,iwp->w_dam); | 206 strcpy(weap->o_damage,iwp->w_dam); |