• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

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


Commit MetaInfo

Revision8f91f2663f3ea2bda3da693cf2bbc95d6a55ce2b (tree)
Time2019-05-01 13:46:38
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 coord 構造体を geometry.h へ移動.

Change Summary

Incremental Difference

--- a/src/geometry.h
+++ b/src/geometry.h
@@ -48,3 +48,16 @@ typedef struct
4848 POSITION y;
4949 POSITION x;
5050 } target_dir;
51+
52+/*
53+ * Simple structure to hold a map location
54+ */
55+typedef struct coord coord;
56+
57+struct coord
58+{
59+ POSITION y;
60+ POSITION x;
61+};
62+
63+
--- a/src/rooms-vault.c
+++ b/src/rooms-vault.c
@@ -11,6 +11,7 @@
1111 #include "feature.h"
1212 #include "floor.h"
1313 #include "dungeon.h"
14+#include "geometry.h"
1415
1516 /*
1617 * The vault generation arrays
--- a/src/types.h
+++ b/src/types.h
@@ -582,20 +582,6 @@ struct grid_type
582582 };
583583
584584
585-
586-/*
587- * Simple structure to hold a map location
588- */
589-typedef struct coord coord;
590-
591-struct coord
592-{
593- POSITION y;
594- POSITION x;
595-};
596-
597-
598-
599585 /*
600586 * Object information, for a specific object.
601587 *
Show on old repository browser