hack.apply.c (aed906e4) hack.apply.c (6acf840e)
1/* $OpenBSD: hack.apply.c,v 1.7 2016/01/09 18:33:15 mestre Exp $ */
1/* $OpenBSD: hack.apply.c,v 1.8 2016/01/09 21:54:11 mestre Exp $ */
2
3/*
4 * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
5 * Amsterdam
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are

--- 466 unchanged lines hidden (view full) ---

476 lev = &levl[rx][ry];
477 if(lev->typ == DOOR)
478 pline("Your %s against the door.",
479 aobjnam(obj, "clang"));
480 else if(!IS_ROCK(lev->typ)
481 && !sobj_at(ENORMOUS_ROCK, rx, ry)) {
482 /* ACCESSIBLE or POOL */
483 pline("You swing your %s through thin air.",
2
3/*
4 * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
5 * Amsterdam
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are

--- 466 unchanged lines hidden (view full) ---

476 lev = &levl[rx][ry];
477 if(lev->typ == DOOR)
478 pline("Your %s against the door.",
479 aobjnam(obj, "clang"));
480 else if(!IS_ROCK(lev->typ)
481 && !sobj_at(ENORMOUS_ROCK, rx, ry)) {
482 /* ACCESSIBLE or POOL */
483 pline("You swing your %s through thin air.",
484 aobjnam(obj, (char *) 0));
484 aobjnam(obj, NULL));
485 } else {
486 if(dig_pos.x != rx || dig_pos.y != ry
487 || dig_level != dlevel || dig_down) {
488 dig_down = FALSE;
489 dig_pos.x = rx;
490 dig_pos.y = ry;
491 dig_level = dlevel;
492 dig_effort = 0;

--- 26 unchanged lines hidden ---
485 } else {
486 if(dig_pos.x != rx || dig_pos.y != ry
487 || dig_level != dlevel || dig_down) {
488 dig_down = FALSE;
489 dig_pos.x = rx;
490 dig_pos.y = ry;
491 dig_level = dlevel;
492 dig_effort = 0;

--- 26 unchanged lines hidden ---