Fix: SE012 Problem: Compilation fails if FIREARMS is commented out in config.h Compatible with: Slash'EM 0.0.5E4 Author: J. Ali Harlow, ali@avrc.city.ac.uk Date: 2 Sep 1999 *** src/apply.c.orig Wed Aug 18 16:06:49 1999 --- src/apply.c Thu Sep 2 12:20:10 1999 *************** *** 2640,2650 **** --- 2640,2652 ---- case BEARTRAP: use_trap(obj); break; + #ifdef FIREARMS case SUBMACHINE_GUN: obj->altmode = (!obj->altmode); You("switch your %s to %s mode.", yname(obj), (obj->altmode ? "full automatic" : "semi-automatic")); break; + #endif default: /* KMH, balance patch -- polearms can strike at a distance */ if (is_pole(obj)) { *** src/invent.c.orig Thu Sep 2 19:54:42 1999 --- src/invent.c Thu Sep 2 12:54:14 1999 *************** *** 725,732 **** /* only applicable weapon is BULLWHIP */ /* KMH, balance patch -- include pole-weapons and mattock */ ((otmp->oclass == WEAPON_CLASS && otyp != BULLWHIP && ! !is_pole(otmp) && otyp != DWARVISH_MATTOCK && ! otyp != SUBMACHINE_GUN) || (otmp->oclass == POTION_CLASS && /* only applicable potion is oil, and it will only be offered as a choice when already discovered */ --- 725,735 ---- /* only applicable weapon is BULLWHIP */ /* KMH, balance patch -- include pole-weapons and mattock */ ((otmp->oclass == WEAPON_CLASS && otyp != BULLWHIP && ! !is_pole(otmp) && otyp != DWARVISH_MATTOCK ! #ifdef FIREARMS ! && otyp != SUBMACHINE_GUN ! #endif ! ) || (otmp->oclass == POTION_CLASS && /* only applicable potion is oil, and it will only be offered as a choice when already discovered */