compilation bits
- remove an unused variable in use_pick_axe2 - wiz_debug_cmd needs to return an int like other extended commands
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
* module you are trying to debug) or things are going to get rather
|
* module you are trying to debug) or things are going to get rather
|
||||||
* hard to link :-)
|
* hard to link :-)
|
||||||
*/
|
*/
|
||||||
extern void NDECL(wiz_debug_cmd);
|
extern int NDECL(wiz_debug_cmd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DUMB /* stuff commented out in extern.h, but needed here */
|
#ifdef DUMB /* stuff commented out in extern.h, but needed here */
|
||||||
|
|||||||
@@ -851,7 +851,6 @@ struct obj *obj;
|
|||||||
register struct rm *lev;
|
register struct rm *lev;
|
||||||
int dig_target;
|
int dig_target;
|
||||||
boolean ispick = is_pick(obj);
|
boolean ispick = is_pick(obj);
|
||||||
const char *verb = ispick ? "dig" : "chop";
|
|
||||||
const char *verbing = ispick ? "digging" : "chopping";
|
const char *verbing = ispick ? "digging" : "chopping";
|
||||||
|
|
||||||
if (u.uswallow && attack(u.ustuck)) {
|
if (u.uswallow && attack(u.ustuck)) {
|
||||||
@@ -1516,7 +1515,7 @@ struct obj *otmp;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
void
|
int
|
||||||
wiz_debug_cmd() /* in this case, bury everything at your loc and around */
|
wiz_debug_cmd() /* in this case, bury everything at your loc and around */
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
@@ -1524,6 +1523,7 @@ wiz_debug_cmd() /* in this case, bury everything at your loc and around */
|
|||||||
for (x = u.ux - 1; x <= u.ux + 1; x++)
|
for (x = u.ux - 1; x <= u.ux + 1; x++)
|
||||||
for (y = u.uy - 1; y <= u.uy + 1; y++)
|
for (y = u.uy - 1; y <= u.uy + 1; y++)
|
||||||
if (isok(x,y)) bury_objs(x,y);
|
if (isok(x,y)) bury_objs(x,y);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|||||||
Reference in New Issue
Block a user