• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision448cb5007be67bc5b163cd1b491e4318bc796f2f (tree)
Time2019-06-02 21:36:33
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 FAF_* を grid.c へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -199,14 +199,6 @@
199199 (1UL << (FF_STRIKE % 32)) | \
200200 (1UL << (FF_SPREAD % 32)))))
201201
202-
203-/*
204- * Feature action flags
205- */
206-#define FAF_DESTROY 0x01
207-#define FAF_NO_DROP 0x02
208-#define FAF_CRASH_GLASS 0x04
209-
210202 #define feat_locked_door_random(DOOR_TYPE) \
211203 (feat_door[(DOOR_TYPE)].num_locked ? \
212204 feat_door[(DOOR_TYPE)].locked[randint0(feat_door[(DOOR_TYPE)].num_locked)] : feat_none)
--- a/src/grid.c
+++ b/src/grid.c
@@ -41,6 +41,12 @@
4141 #include "view-mainwindow.h"
4242 #include "realm-song.h"
4343
44+/*
45+ * Feature action flags
46+ */
47+#define FAF_DESTROY 0x01
48+#define FAF_NO_DROP 0x02
49+#define FAF_CRASH_GLASS 0x04
4450
4551 /*!
4652 * @brief 地形状態フラグテーブル /
--- a/src/grid.h
+++ b/src/grid.h
@@ -379,6 +379,7 @@ extern void add_door(POSITION x, POSITION y);
379379 #define DOOR_DOOR 0
380380 #define DOOR_GLASS_DOOR 1
381381 #define DOOR_CURTAIN 2
382+
382383 #define MAX_DOOR_TYPES 3
383384 extern void place_closed_door(POSITION y, POSITION x, int type);
384385 extern void place_secret_door(POSITION y, POSITION x, int type);
Show on old repository browser