• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision5ce97277436de34c32b6807932e5e14fd6a60f4f (tree)
Time2003-05-27 07:38:15
Authornothere <nothere@0568...>
Commiternothere

Log Message

地形変化で深い溶岩に変わった場合に溶岩と周囲8マスが光るように変更.

Change Summary

Incremental Difference

--- a/src/cave.c
+++ b/src/cave.c
@@ -4611,6 +4611,28 @@ void cave_set_feat(int y, int x, int feat)
46114611 /* Change the feature */
46124612 c_ptr->feat = feat;
46134613
4614+ /* Hack -- glow the deep lava */
4615+ if (feat == FEAT_DEEP_LAVA)
4616+ {
4617+ int i, yy, xx;
4618+
4619+ for (i = 0; i < 9; i++)
4620+ {
4621+ yy = y + ddy_ddd[i];
4622+ xx = x + ddx_ddd[i];
4623+ if (!in_bounds2(yy, xx)) continue;
4624+ cave[yy][xx].info |= CAVE_GLOW;
4625+ if (player_has_los_bold(yy, xx))
4626+ {
4627+ /* Notice */
4628+ note_spot(yy, xx);
4629+
4630+ /* Redraw */
4631+ lite_spot(yy, xx);
4632+ }
4633+ }
4634+ }
4635+
46144636 /* Notice */
46154637 note_spot(y, x);
46164638
Show on old repository browser