Magic-number elimination.
[open-adventure.git] / actions2.c
index a169c481960affea6b660277414d151473f71ebb..295f1880a1fd07dbb59213ad85170649a0b05bb9 100644 (file)
@@ -232,7 +232,7 @@ int throw(FILE *cmdin) {
        return(attack(cmdin));
 
 L9172: SPK=48;
-       if(randrange(7) < DFLAG) goto L9175;
+       if(randrange(NDWARVES+1) < DFLAG) goto L9175;
        DSEEN[I]=false;
        DLOC[I]=0;
        SPK=47;