diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/defines.h | 19 | ||||
-rw-r--r-- | src/spells1.cc | 19 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/defines.h b/src/defines.h index ca6fbfd9..3d87df47 100644 --- a/src/defines.h +++ b/src/defines.h @@ -3386,25 +3386,6 @@ -/* - * Convert an "attr"/"char" pair into a "pict" (P) - */ -#define PICT(A,C) \ - ((((u16b)(A)) << 8) | ((byte)(C))) - -/* - * Convert a "pict" (P) into an "attr" (A) - */ -#define PICT_A(P) \ - ((byte)((P) >> 8)) - -/* - * Convert a "pict" (P) into an "char" (C) - */ -#define PICT_C(P) \ - ((char)((byte)(P))) - - /* * Determines if a map location is fully inside the outer walls diff --git a/src/spells1.cc b/src/spells1.cc index 594c2e73..dbbf4e24 100644 --- a/src/spells1.cc +++ b/src/spells1.cc @@ -51,6 +51,25 @@ using std::chrono::milliseconds; #define MAX_TRIES 100 /* + * Convert an "attr"/"char" pair into a "pict" (P) + */ +#define PICT(A,C) \ + ((((u16b)(A)) << 8) | ((byte)(C))) + +/* + * Convert a "pict" (P) into an "attr" (A) + */ +#define PICT_A(P) \ + ((byte)((P) >> 8)) + +/* + * Convert a "pict" (P) into an "char" (C) + */ +#define PICT_C(P) \ + ((char)((byte)(P))) + + +/* * Helper function -- return a "nearby" race for polymorphing * * Note that this function is one of the more "dangerous" ones... |