• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision0efc5fe207636c5f6bd44d054e9eec4f768a81f2 (tree)
Time2019-05-25 19:52:57
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 テレポート処理定義(TELEPORT_*) を spells.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -448,15 +448,6 @@
448448 #define FAF_NO_DROP 0x02
449449 #define FAF_CRASH_GLASS 0x04
450450
451-
452-/*
453- * Bit flags for teleportation
454- */
455-#define TELEPORT_NONMAGICAL 0x00000001
456-#define TELEPORT_PASSIVE 0x00000002
457-#define TELEPORT_DEC_VALOUR 0x00000004
458-
459-
460451 /* Types of doors */
461452 #define DOOR_DEFAULT -1
462453 #define DOOR_DOOR 0
--- a/src/spells.h
+++ b/src/spells.h
@@ -269,6 +269,13 @@ extern bool rodeo(player_type *creature_ptr);
269269 extern bool clear_mind(player_type *creature_ptr);
270270 extern bool concentration(player_type *creature_ptr);
271271
272+/*
273+ * Bit flags for teleportation
274+ */
275+#define TELEPORT_NONMAGICAL 0x00000001
276+#define TELEPORT_PASSIVE 0x00000002
277+#define TELEPORT_DEC_VALOUR 0x00000004
278+
272279 /* spells3.c */
273280 extern bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode);
274281 extern void teleport_monster_to(MONSTER_IDX m_idx, POSITION ty, POSITION tx, int power, BIT_FLAGS mode);
Show on old repository browser