Zapping existing ice with cold wand/spell guaranties safe ice for
a minimum of MIN_ICE_TIME time.
Note that it could actually cause the ice to melt sooner than
it previously would have due to the randomization, but that's
an internal that the non-wizard-mode player would never
know anyway. The important thing from the hero's perspective
is that the ice should be safe for a while at least.
Also noticed and corrected a bug where the ice object effects
seem to have been getting initiated when solidifying lava in
zap.c
newsym(x,y);
}
}
+ if (!lava) {
+ start_melt_ice_timeout(x,y);
+ obj_ice_effects(x,y,TRUE);
+ }
}
- start_melt_ice_timeout(x,y);
- obj_ice_effects(x,y,TRUE);
+ }
+ else if(abstype == ZT_COLD && is_ice(x,y)) {
+ /* Already ice here, so just firm it up. */
+ spot_stop_timers(x, y, MELT_ICE_AWAY); /* stop existing timer */
+ start_melt_ice_timeout(x,y); /* start new timer */
}
if(closed_door(x, y)) {
int new_doormask = -1;