Fix an implicit-fallthrough and maybe-uninitialized warning
This commit is contained in:
@@ -1617,7 +1617,7 @@ obj_delivery(near_hero)
|
|||||||
boolean near_hero;
|
boolean near_hero;
|
||||||
{
|
{
|
||||||
register struct obj *otmp, *otmp2;
|
register struct obj *otmp, *otmp2;
|
||||||
register int nx, ny;
|
int nx = 0, ny = 0;
|
||||||
int where;
|
int where;
|
||||||
boolean nobreak, noscatter;
|
boolean nobreak, noscatter;
|
||||||
stairway *stway;
|
stairway *stway;
|
||||||
@@ -1650,6 +1650,7 @@ boolean near_hero;
|
|||||||
switch (where) {
|
switch (where) {
|
||||||
case MIGR_LADDER_UP:
|
case MIGR_LADDER_UP:
|
||||||
isladder = TRUE;
|
isladder = TRUE;
|
||||||
|
/*FALLTHRU*/
|
||||||
case MIGR_STAIRS_UP:
|
case MIGR_STAIRS_UP:
|
||||||
case MIGR_SSTAIRS:
|
case MIGR_SSTAIRS:
|
||||||
if ((stway = stairway_find_from(&fromdlev, isladder)) != 0) {
|
if ((stway = stairway_find_from(&fromdlev, isladder)) != 0) {
|
||||||
@@ -1657,7 +1658,6 @@ boolean near_hero;
|
|||||||
nx = stway->sy;
|
nx = stway->sy;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
break;
|
|
||||||
case MIGR_WITH_HERO:
|
case MIGR_WITH_HERO:
|
||||||
nx = u.ux, ny = u.uy;
|
nx = u.ux, ny = u.uy;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user