• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revisiona5c0dcac5ced9d090200c46bb0c4bee1518d1137 (tree)
Time2003-12-02 08:49:37
Authornothere <nothere@0568...>
Commiternothere

Log Message

new_player_spot()でのプレイヤーのランダム初期配置条件にTELEPORTABLEを
追加. これにより, ダンジョン "森" に入った時に木の中から開始しないよ
うに修正. また, 地上では木と山脈の上に配置できるようにするため, ラン
ダム初期配置条件にはMOVEとTELEPORTABLEを参照しないように変更.

Change Summary

Incremental Difference

--- a/src/grid.c
+++ b/src/grid.c
@@ -37,7 +37,11 @@ bool new_player_spot(void)
3737
3838 /* Must be a "naked" floor grid */
3939 if (c_ptr->m_idx) continue;
40- if (!have_flag(f_flags_grid(c_ptr), FF_MOVE)) continue;
40+ if (dun_level)
41+ {
42+ if (!have_flag(f_flags_grid(c_ptr), FF_MOVE)) continue;
43+ if (!have_flag(f_flags_grid(c_ptr), FF_TELEPORTABLE)) continue;
44+ }
4145 if (!player_can_enter(c_ptr->feat, 0)) continue;
4246 if (!in_bounds(y, x)) continue;
4347
Show on old repository browser