de-sparkling explosions

From the newsgroup:  explosions handle their own shield effect
display for resisting monsters and it was ignoring user's negation
of the sparkle option to suppress shield effect.
This commit is contained in:
nethack.rankin
2002-11-13 23:08:04 +00:00
parent a6d0e7f0b9
commit e3b20b8a9f
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -303,6 +303,7 @@ for ordinary remove curse, don't uncurse quivered object unless it is suitable
salamanders have no legs and cannot ride salamanders have no legs and cannot ride
all objects carried by a monster who's hit by a polymorph zap are protected all objects carried by a monster who's hit by a polymorph zap are protected
from that zap, not just worn armor which falls off due to shape change from that zap, not just worn armor which falls off due to shape change
sparkle option for display effects was ignored on explosions
Platform- and/or Interface-Specific Fixes Platform- and/or Interface-Specific Fixes
+2 -2
View File
@@ -1,4 +1,4 @@
/* SCCS Id: @(#)explode.c 3.4 2000/07/07 */ /* SCCS Id: @(#)explode.c 3.4 2002/11/10 */
/* Copyright (C) 1990 by Ken Arromdee */ /* Copyright (C) 1990 by Ken Arromdee */
/* NetHack may be freely redistributed. See license for details. */ /* NetHack may be freely redistributed. See license for details. */
@@ -188,7 +188,7 @@ int expltype;
} }
curs_on_u(); /* will flush screen and output */ curs_on_u(); /* will flush screen and output */
if (any_shield) { /* simulate a shield effect */ if (any_shield && flags.sparkle) { /* simulate shield effect */
for (k = 0; k < SHIELD_COUNT; k++) { for (k = 0; k < SHIELD_COUNT; k++) {
for (i=0; i<3; i++) for (j=0; j<3; j++) { for (i=0; i<3; i++) for (j=0; j<3; j++) {
if (explmask[i][j] == 1) if (explmask[i][j] == 1)