@@ -39,7 +39,7 @@ randmonster(bool wander)
|
|||||||
int d;
|
int d;
|
||||||
char *mons;
|
char *mons;
|
||||||
|
|
||||||
mons = (char *)(wander ? wand_mons : lvl_mons);
|
mons = (wander ? wand_mons : lvl_mons);
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
d = level + (rnd(10) - 6);
|
d = level + (rnd(10) - 6);
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ do_pot(struct rogue_state *rs,int type, bool knowit)
|
|||||||
PACT *pp;
|
PACT *pp;
|
||||||
int t;
|
int t;
|
||||||
|
|
||||||
pp = (PACT *)&p_actions[type];
|
pp = &p_actions[type];
|
||||||
if (!pot_info[type].oi_know)
|
if (!pot_info[type].oi_know)
|
||||||
pot_info[type].oi_know = knowit;
|
pot_info[type].oi_know = knowit;
|
||||||
t = spread(pp->pa_time);
|
t = spread(pp->pa_time);
|
||||||
|
|||||||
@@ -246,20 +246,20 @@ dig(struct rogue_state *rs,int y, int x)
|
|||||||
if ( rs->replaydone != 0 )
|
if ( rs->replaydone != 0 )
|
||||||
return;
|
return;
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
for (cp = (coord *)del; cp <= (coord *)&del[3]; cp++)
|
for (cp = del; cp <= &del[3]; cp++)
|
||||||
{
|
{
|
||||||
newy = y + cp->y;
|
newy = y + cp->y;
|
||||||
newx = x + cp->x;
|
newx = x + cp->x;
|
||||||
if (newy < 0 || newy > Maxy || newx < 0 || newx > Maxx)
|
if (newy < 0 || newy > Maxy || newx < 0 || newx > Maxx)
|
||||||
continue;
|
continue;
|
||||||
if (flat(newy + Starty, newx + Startx) & F_PASS)
|
if (flat(newy + Starty, newx + Startx) & F_PASS)
|
||||||
continue;
|
continue;
|
||||||
if (rnd(++cnt) == 0)
|
if (rnd(++cnt) == 0)
|
||||||
{
|
{
|
||||||
nexty = newy;
|
nexty = newy;
|
||||||
nextx = newx;
|
nextx = newx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cnt == 0)
|
if (cnt == 0)
|
||||||
return;
|
return;
|
||||||
accnt_maze(y, x, nexty, nextx);
|
accnt_maze(y, x, nexty, nextx);
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ fall(struct rogue_state *rs,THING *obj, bool pr)
|
|||||||
void
|
void
|
||||||
init_weapon(THING *weap, int which)
|
init_weapon(THING *weap, int which)
|
||||||
{
|
{
|
||||||
const struct init_weaps *iwp;
|
struct init_weaps *iwp;
|
||||||
weap->o_type = WEAPON;
|
weap->o_type = WEAPON;
|
||||||
weap->o_which = which;
|
weap->o_which = which;
|
||||||
iwp = &init_dam[which];
|
iwp = &init_dam[which];
|
||||||
|
|||||||
Reference in New Issue
Block a user