Morph static variables

This commit is contained in:
jl777
2019-03-19 01:35:15 -11:00
parent f58655b1cd
commit 0322f2d98c
10 changed files with 80 additions and 104 deletions

View File

@@ -19,7 +19,7 @@
int group = 2;
static struct init_weaps {
static const struct init_weaps {
char *iw_dam; /* Damage when wielded */
char *iw_hrl; /* Damage when thrown */
char iw_launch; /* Launching weapon */
@@ -125,8 +125,8 @@ void
fall(struct rogue_state *rs,THING *obj, bool pr)
{
PLACE *pp;
static coord fpos;
coord fpos;
memset(&fpos,0,sizeof(fpos));
if (fallpos(&obj->o_pos, &fpos))
{
pp = INDEX(fpos.y, fpos.x);
@@ -197,8 +197,8 @@ init_weapon(THING *weap, int which)
int
hit_monster(struct rogue_state *rs,int y, int x, THING *obj)
{
static coord mp;
coord mp;
memset(&mp,0,sizeof(mp));
mp.y = y;
mp.x = x;
return fight(rs,&mp, obj, TRUE);